Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2016-12-08 01:07 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (133 votes). Check out past polls.