On Feb 3, 2006, at 10:11 AM, de Runtz, Lars wrote:
#linefeeds to newlines
cat file.txt | tr "\l" "\n" > fileWithNewLines.txt

I don't see how this can work. The "CR-LF" sequence isn't a single character, and TR won't read it as one, and "\l" isn't an escape tr knows about anyway.

Just tried it, no dice.

Try:

tr -d '\r' < file.txt > file_with_no_cr.txt


--
Unsupported OS X is sponsored by <http://lowendmac.com/>

     Support Low End Mac <http://lowendmac.com/lists/support.html>

Unsupported OS X list info <http://lowendmac.com/lists/unsupported.html>
 --> AOL users, remove "mailto:";
Send list messages to:     <mailto:[email protected]>
To unsubscribe, email:     <mailto:[EMAIL PROTECTED]>
For digest mode, email:    <mailto:[EMAIL PROTECTED]>
Subscription questions:    <mailto:[EMAIL PROTECTED]>
Archive <http://www.mail-archive.com/unsupportedosx%40mail.maclaunch.com/>

iPod Accessories for Less
at 1-800-iPOD.COM
Fast Delivery, Low Price, Good Deal
www.1800ipod.com

Reply via email to