Or just use dos2unix or unix2dos :)

2007/4/29, Mikhail Fursov <[EMAIL PROTECTED]>:
On 4/29/07, Nathan Beyer <[EMAIL PROTECTED]> wrote:
>
> Just convert all of the line ending to the native format you're working
> on.
>
> If you're on Windows, I'd used Notepad2. It has a nice display
> whitespace feature and convert line endings feature.


If you use Linux or have cygwin installed:
sed -e 's/$/\r/' inputfile > outputfile # UNIX to DOS (adding CRs)
sed -e 's/\r$//' inputfile > outputfile # DOS to UNIX (removing CRs)






--
Mikhail Fursov

Reply via email to