develooper Front page | perl.beginners | Postings from February 2002

RES: Converting windows txt file format to Linux txt file format

From:
Lilian Alvarenga Caravela Godoy
Date:
February 22, 2002 11:22
Subject:
RES: Converting windows txt file format to Linux txt file format
Message ID:
113A7987B079D31195D500805FC769920223F431@200-184-173-3.oabsp.com.br
Yes, Johnathan

Now I know it.

I didn't know it because Linux and perl are really new to me.
Then I thought that I should write a perl script to do it.

Thank you.

-----Mensagem original-----
De: Johnathan Kupferer [mailto:johnathan@gnuthought.com]
Enviada em: sexta-feira, 22 de fevereiro de 2002 16:07
Para: Lilian Alvarenga Caravela Godoy
Cc: beginners@perl.org
Assunto: Re: Converting windows txt file format to Linux txt file format


You don't need perl for this.  The easiest approach is to use the 
"dos2unix" utility.  Use "man dos2unix" for more information.

- Johnathan


Lilian Alvarenga Caravela Godoy wrote:

>Hi everyone
>
>I am trying to upload a windows txt file to a Linux server.
>
>There are an application running in my Linux server that reads the txt file
>to extract some information.
>
>But the application doesn't recognize the file because it's originally from
>windows.
>
>I know that I could solve it changing the end of line caracters such as
line
>feed and carriage return, but I don't know how to do it.
>
>Does anyone know a way to do it using Perl?
>
>Thanks in advance.
>
>Lilian.
>





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About