Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Keep It Simple, Stupid
 
PerlMonks  

Re: What one-liners do people actually use?

by exussum0 (Vicar)
on Dec 08, 2005 at 19:03 UTC ( #515338=note: print w/ replies, xml ) Need Help??


in reply to What one-liners do people actually use?

dos2unix

perl -s -p -i -e '~s/\r//g' file.txt


Comment on Re: What one-liners do people actually use?
Download Code
Re^2: What one-liners do people actually use?
by ikegami (Pope) on Dec 08, 2005 at 20:29 UTC
    unix2dos (when run from "dos")
    perl -i.bak -ple1 file.txt
Re^2: What one-liners do people actually use?
by tphyahoo (Vicar) on Dec 09, 2005 at 10:45 UTC
    The s flag (process switches) is useless here, isn't it?
      Prolly so, it's just such a habit.. like doing ~s///g is for some. Yes, I've accidentally written stuff like ~s/a$//g; now and then just 'cause I do /g so much. ^^

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://515338]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2014-04-21 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (490 votes), past polls