<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 10/20/2011 04:29 AM, Jesus arteche wrote:
<blockquote
cite="mid:CAM50+xoXax9LjpE2SmAKbpmaz8FYFhTnM7mptK=6XWA8eKNEJw@mail.gmail.com"
type="cite">Hey guys,
<div><br>
</div>
<div>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??</div>
<div><br>
</div>
<div>
Thanks</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
You will want to use something like sed. An example:<br>
<br>
sed -i "s/oldword/newword/g" /some/script.sh<br>
<br>
This will replace all instances of oldword with newword in the file
script.sh<br>
<br>
If you want to do this at system boot you can put it in
/etc/rc.local<br>
<br>
-Mike<br>
</body>
</html>