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...
    A reply falls below the community's threshold of quality. You may see it by logging in.