Unix box server version
***********
>uname -r
B.11.00
>echo $SHELL
/usr/bin/ksh
--> in this server, I have the path like /IMbuild/dev/im0serv1
---> in that directory I have the folders startup(.jsp files nearly 100 jsp's ) and scripts(contains .js files nearly 100 files)
So, in .jsp,.js files there are two methods calling the Application ID like
returnMMCObjectContent("chiru");//
getDCCObjectContent("chiru");
like chiru I need to search for 22,000 articles.
till now I am using one command
find . -name -exec grep -l "chiru" {}\; | -exec grep -n "chiru" {}\;//
then I vl get the result like that method where ever the chiru was used and the file name with path like ../start/loutout.js,../filenames/login.jsp
so with this I can make a note that chiru was used name bcoz reference files were displayed.
If any reference file not came,that means chiru was unUsed name....
This whole part is MANUAL kind of thing I have to do CTRL+C and CTRL+V ..........for 22,000 times
MY REQUIREMENT IS:
--------------------
I want to take 10,000 names in a text file (test.txt) and directly pass as input file to the script and the script has to read the file line by line and searching in the sub directories(start and scripts) ,if reference has found,then those names has to go into one output file with that name and reference file(.jsp, .js) (out1.txt) , if any reference was not found then those names should go into another output file(out2.txt).
So I am asking for that script ;
either perl script or any UNIX shell script that can work in version:B.11.00
Another Unix box server
***********
>uname -r
2.6.9-89.0.20.ELsmp
>echo $SHELL
ksh:echo: not found
This is different version of UNIX
The same script for the above server I want to execute in this server....
Thanks in Advance ........................