[wplug] CRLF

Sal Mangiapane salm at servanttechnology.com
Mon Feb 9 20:08:30 EST 2004


> It was Monday, February 09, 2004 when J Aaron Farr took the soap box, saying:
> : Quoting Brandon Kuczenski <brandon at 301south.net>:
> :
> : > Ever since I started at CMU a year ago, I've driven faculty and staff mad
> : > with my reluctance to use Micro$oft data formats.  Unfortunately, my
> : > much-vaunted plain ASCII format has a substantial snag: when I produce
> : > documents in unix, the lines are not terminated in a Windows-Friendly
> : > fashion, and my document ends up being unreadable.
> : >
> : > Is there any way to use the standard *nix tools to convert the CRs (or LFs
> : > - I forget which is which) in an ascii document to CR/LF for windows text
> : > editors?
> : >
> : > -Brandon
> :
> : try:
> :
> :   dos2unix
> : and
> :   unix2dos
>
> In the event that these do not exist, use Perl.
>
>   perl -pi -e's!$|\r!' filename.txt
>

Also consider how you are getting the files from *nix to Micro$oft, FTP in BINARY will cause this type of problem while FTP in ASCII
will not.

sal




More information about the wplug mailing list