From http://billharlan.com/pub/papers/Bourne_shell_idioms.html:
tr -d '\015' < win.txt > unix.txt # if you can't find dos2unix
What you have there is unix2dos, adding \r in front of \n for each line.
On Apr 12, 2006, at 4:48 PM, Quinn Comendant wrote:
Anybody have a command that can automatically convert line-endings to unix? For an entire project?
Maybe something like...
sed 's/$/\r/'
?
Q