Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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 ...

Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2016-10-21 20:15 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (289 votes). Check out past polls.