Originally posted by Mekanik
[quote=geeshock]sed came in handy fot me a cupple of times, like when I had to replace an ip in like 80 files

It saved me much time[/quote]
you can also use a cool
perl one-liner to do that also.
this will make a backup of <filename> to <filename~> and then replace the first instance found on each line:
Code:
perl -i~ -pe 's!search_string!replace_string!' mss.sh
this will make a backup of <filename> to <filename~> and then replace all instances found on each line:
Code:
perl -i~ -pe 's!search_string!replace_string!g' mss.sh
-mekanik