Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: multi-line in-place edits

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


in reply to multi-line in-place edits

perl -i -pe 's/(.+)/{$1}/' filename.txt

Update: return of deleted errors ...


Comment on Re: multi-line in-place edits
Download Code
Re^2: multi-line in-place edits
by Tuppence (Pilgrim) on Feb 15, 2005 at 19:02 UTC
    Yours wraps each line - I want the whole file wrapped. Although yours does get rid of the funny extra sets...
      Yes, I read your post more carefully and delete my answer.
        You shouldn't :-) Now we have the sense that something's missing :-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2014-07-31 12:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (248 votes), past polls