[TxMt] converting mac line endings
bchoate at gmail.com
Wed Apr 12 23:55:44 UTC 2006
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/'
More information about the textmate