[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CR-LF translator hunt..
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: CR-LF translator hunt..
- From: Mark Nettle <mark_(_at_)_bluefire_(_dot_)_com_(_dot_)_au>
- Date: Wed, 21 Jul 1999 01:29:24 -0400
Kjell Wooding wrote:
>
> >I am attempting to translate a text file from a windows/dos CR/LF linebreak
> >setup to either a) unix LF only, b) Macintosh, CR only, or c) some other
> >text entirely at the end of each line (for importing into a database).
>
> perl -pi -e 's/\r\n/\r/' filename
for mac -> unix, I like the 2nd prize winner in the Most Powerful
category of the 0th Obfuscated Perl Contest (entered by Gordon Lack):
#!/usr/bin/perl -w015l12pi.bak
Visit your host, monkey.org