[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LF to CR Conversion



In <35hdq1$hp7@newsserv.cs.sunysb.edu> jsimmons@cs.sunysb.edu (Jason Simmons) writes:

>tr can do this.  Pipe your file through "tr '\015' '\012'".

Actually, to replace linefeeds with carriage returns, do

cat <filename> | tr '\012' '\015' > <newfilename>

Works much better ;)

ThomasD