Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: multi-line in-place edits

by bmann (Priest)
on Feb 15, 2005 at 19:33 UTC ( #431303=note: print w/replies, xml ) Need Help??


in reply to multi-line in-place edits

I thought this could be solved with something like -l0666,

Take a look at perlrun, -0777 will slurp the entire file. Here's a working one-liner: perl -i.bak -0777 -ne 'print "{$_}"' filename
Good luck!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://431303]
help
Chatterbox?
[thezip]: stonecolddevin! 'Sup?

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (13)
As of 2016-12-07 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (131 votes). Check out past polls.