Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Unix ASCII line endings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unix ASCII line endings




On 2004 Sep 16 , at 09.58, Malcolm Haylock wrote:

Check out the excellent freeware program "flip":
http://ccrma.stanford.edu/~craig/utility/flip/

It's a simple command line program that converts between mac, windows/dos and unix or just reports the format of the input files. C++ source code and executables for all platforms are available.

Or you could just say

alias todos="perl -pe 's/$/\r/'"
alias fromdos="tr -d '\r'"
alias frommac="tr '\r' '\n'"
alias tomac="tr '\n' '\r'"

in your .bashrc (or .zshrc, or whatever it is for csh). This is a little unix-centric, but it's a lot more compact than installing a whole program to do this!

Norman


-- ---------------------------------------------------------------------- Norman Gray : Physics & Astronomy, Glasgow University, UK http://www.astro.gla.ac.uk/users/norman/ : www.starlink.ac.uk

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Fortran-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Unix ASCII line endings (From: Malcolm Haylock <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.