[Novalug] End of Line Conversion

Rahul Murmuria rahul at murmuria.in
Mon Dec 1 14:09:59 EST 2008


Hi Dan,

On Mon, Dec 1, 2008 at 2:04 PM, Dan Arico <dan_arico at aricosystems.com>wrote:

> Is there any Linux function similar to unix2dos and dos2unix that converts
> to
> and from Mac's format?
>

I thik you are looking for 'tr':

MAC --> UNIX

tr "\r" "\n" < MACfile.txt > UNIXfile.txt

UNIX --> MAC

tr "\n" "\r" < UNIXfile.txt > MACfile.txt


> Dan Arico
>
> --
> One OS to rule them all, One OS to find them,
> One OS to bring them all, and in the Darkness bind them,
> In the land of Redmond, where the Sales Reps lie.
>
>
Hope this helps!
-- 
Rahul Murmuria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://calypso.tux.org/pipermail/novalug/attachments/20081201/09e7d67b/attachment-0003.html 


More information about the Novalug mailing list