MLUG: Re: [MLUG] Re: text file cr/lf annoyance
Re: [MLUG] Re: text file cr/lf annoyance
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mike Miller wrote:
> 
> I find that on the command line, this works just fine:
> 
> perl -pi -e 's/\015$//' c* f* [i-l]* {reut,mail}*
> 
> So what's the trick to making that into a perl script?


How about this:

#!/usr/bin/perl -i -p
s/\r$//


-- 
Stephen Montgomery-Smith
EMAIL:PROTECTED
http://www.math.missouri.edu/~stephen

--
To unsubscribe, go to http://mlug.missouri.edu/members/edit.php

Archives are available at http://mlug.missouri.edu/list-archives/