in reply to
multi-line in-place edits
perl -i -pe 's/(.+)/{$1}/' filename.txt
[download]
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...
[reply]
A reply falls below the community's threshold of quality. You may see it by logging in.
In Section
Seekers of Perl Wisdom