Darac Marjal <mailingl...@darac.org.uk> 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 debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87aa8uw5zy....@newsguy.com