Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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 pondering the Monastery: (8)
As of 2016-06-24 22:05 GMT
Find Nodes?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...

    Results (322 votes). Check out past polls.