Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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
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 musing on the Monastery: (12)
As of 2015-12-01 14:11 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (12 votes), past polls