On Thu, Oct 20, 2011 at 09:29:35AM BST, Jesus arteche wrote: > I want to create a script to change some words in some sonf files at the > start up of the system...do you know the command in bash for search the word > and replace it??
You don't need bash for it, sed's your friend, e.g.: % sed -i 's/old_word/new_word/' /etc/conf.file I highly recommend. % man sed Regards, -- Raf -- 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/20111020083650.ga17...@linuxstuff.pl