On Jan 22, 2013, at 11:45 PM, Melinda Shore <melinda.sh...@gmail.com> wrote:

> On 1/22/13 7:16 PM, Dean Willis wrote:
>> Microsoft-OS text editors. Seriously. People wanted to be able to
>> write correct SIP messages using text editors, and there were more
>> Microsoft users than Linux users on the list. 
> 
> Oh, c'mon.  MS products and MacOS at the time used CRLF for newlines
> generally, not just in Word.  The fact that it was specified that way
> in HTTP, SMTP, FTP, and others matters a bit, as well.

Yup, and Unix users have the ability to choose line endings:
Emacs -
M-x set-buffer-file-coding-system RET undecided-dos

VI - 
: Set fileformat = dos : W 

If you are using anything else, a: don't or b: 

tr -d '\r' < input.file > output.file

or 

perl -pi -e 's/\r\n/\n/g' input.file

or 

sed 's/$'"/`echo \\\r`/" input.txt > output.txt

or…. 

W



> 
> Melinda
> 

--
The duke had a mind that ticked like a clock and, like a clock, it regularly 
went cuckoo.

    -- (Terry Pratchett, Wyrd Sisters)


Reply via email to