in reply to multi-line in-place edits
but this does. Not as quick to type, but...perl -p -i -e 'BEGIN { print "{" } END { print "}" }' filename.txt
echo "{" >tmp cat filename.txt >>tmp echo "}" >>tmp mv tmp filename.txt
--
[ e d @ h a l l e y . c c ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: multi-line in-place edits
by Tuppence (Pilgrim) on Feb 15, 2005 at 20:08 UTC |