Hello Forum members,
Have a nice day.
I have to write a script for the following below scenario.
There are 3 applications located in home directory(ie xyz/app) which have multiple directories and files of diff format(.sh,log,other formats).
Case 1: I have to find the hardcoded IP_ADD 's which are loacted in these three applicatins and assign with respective domain names and redirect into a text file which will save in the xyz/app path.
Case 2:get an IP_ADD from the text file and check in all three applications and repalce with domain name.
Please suggest me a how to write a script for the above scenario.Its urgent ,I am looking forward from you.
Thanks in Advance,
rajkuma_g
Hello Forum members,
Have a nice day.
I have to write a script for the following below scenario.
There are 3 applications located in home directory(ie xyz/app) which have multiple directories and files of diff format(.sh,log,other formats).
1: I have to find the hardcoded IP_ADD 's which are loacted in these three applicatins and assign with respective domain names
I am searching with the following comand for hardcoded IP_add
find . -type f -exec grep -l "[0-p].[0-9].[0-9].[0-9]" {} \;
but it have display the only files which present in the below directories.
/xyz/gcs/ccc
/xyz/gcs/ddd
/xyz/gcs/eee
but it displaying all the files.so how to write a script for this.
Already I have posted in the shell programming blog but no response its urgent to me please help me,I am looking forward from you.
Thanks in Advance,
rajkuma_g