Re: Converting linefeeds in text files


Subject: Re: Converting linefeeds in text files
From: Jamie Hushower (hushower@alaska-geeks.com)
Date: Mon Dec 22 2003 - 08:15:35 AKST


I think dos2unix and unix2dos will convert those files back and forth.
Standard on Redhat. I don't know about other distros.

-Jamie

Brandon Barnes wrote:
> I sometimes find text files on my Linux system that must have been ftpd
> from a Windows machine in binary mode, because they have Carriage
> Return/Line Feed (hex 0D 0A) instead of plain linefeeds (hex 0A). Is
> there some simple command I can run that will either strip carriage
> return characters from a file or add them if I want to go the other
> direction? Also, I seem to recall reading that Windows uses hex
> character 1A for an end-of-file marker, and Linux uses 04. So that would
> probably need to be taken into account, too.
>
> Thanks.
>
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.
>
>
>

-- 
Jamie Hushower
Computer Consultant
Rent-A-Geek
223-9136
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Mon Dec 22 2003 - 08:12:55 AKST