I've been trying to write a script which finds a string and change it with another string. For this i want to search all files (with its arguments) under a spesific directory and its subdirectories.
For example lets assume i want to replace an IP= 192.168.0.4 with another IP=192.168.0.10 in all the files under a certain directory and its subdirectories.
But as you know the rest is the most important part; How to replace the found IP with the other one 192.168.0.10 , for the rest i have tried to use SED and AWK gsub but was unsuccessful.
Thanks all. Thegeek mate i believe your code should work but my environment solaris10 does not support "-i" option of SED. It didnt work. I can use the code of Dennis, but I would like to know which option should i use with SED?