my query...
1.I Have to search for the files in the root directory.
2.i have to search for a pattern in all the files in the root directory and then replace them with a new pattern.
3.Rename the file
Explanation:
if ABC is the root folder and has 3 subfolders and there are 15 files in total. i am searching for the string December and then i have to change it to January and rename the file which has the desired pattern(e.g December)
i am working on sunos 5.8 and i tried with the sed command but the -i option is not supported.
Please give me some suggestions...
wht should i give in place of <file pattern>
I am using sed "s/as/AS/g" $file >> $newfile
but the string 'as' is replaced by 'AS' in all the places. i need to replace it only for the 'as' word but not the string
e.g
file has the contents:
manas
as far as you go
has