On 10/20/2011 04:29 AM, Jesus arteche wrote:
Hey guys,
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??
Thanks
You will want to use something like sed. An example:
sed -i "s/oldword/newword/g" /some/script.sh
This will replace all instances of oldword with newword in the file
script.sh
If you want to do this at system boot you can put it in /etc/rc.local
-Mike
--
ubuntu-server mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam