Darac Marjal <[email protected]> writes: > Sadly, this can't be done in-place, so you'll either need to use mv to > replace /etc/conf.file with /etc/conf.file.new or repeat the loop (with > no substitution) to copy /etc/conf.file.new into /etc/conf.file.
Maybe now with bash, but with perl it can be done in place quite handily. perl -i -pe 's/WORDS/REPLACEMENT/' my.conf -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

