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