View Single Post
Pureghetto
<(o'.'o)> ~ Pika pika
Pureghetto's Avatar
Location: Barrie, ON
#6
Talking

Originally Posted by crono_logical ^
Surely this can be done with a simple one line command using sed at a command line? This works for me:

sed 's/^.*$/prepend text&append text/' inputfile.txt > result.txt

That'd get around the problem of it not altering the first and possibly last lines in the file using face's method
I'm getting 'not enough arguments' error.
Old 07-21-2008, 04:11 PM
Reply With Quote
Pureghetto is offline