adding Windows carriage returns
Mike Cantrell
yomahz@devnull.org
Wed, 19 Apr 2000 18:01:28 -0700
try this:
perl -p -i -e 's/\n/\r\n/' filename
Patrick Rhodes wrote:
>
>
> I have text file in Linux that I need converted to Windows. From what
> I understand, I need to add an extra carriage return or line feed at
> the end of each line to read it properly in Windows. I can't figure
> out how to do this and I've been looking at the 'sed' at 'tr'
> commands. I'm sure the answer is in there, but I'm unable to figure
> it out as of yet. Can anybody help me with this? Any and all
> information is appreciated. Thanks!
>
> Patrick