Hi,
I am making a script in which I have to do the following :
Search for files containing Dev*.txt in the current directory.
put the list of file in another file.
(can be achieved using "print `ls Dev*.txt > Dev.txt`;")
Now dev.txt has the list of every text file starting with Dev.
put the contents of every file listed in this dev.txt file to a file. (ex:res.txt) (So res.txt should contain contents of every text file starting with Dev.
check the contents of every file to c for a word starting with any number of characters and ending with atleast 3 digits .. (ex: JK001 , TLL006666).
If the string is found then print the first 2 lines of the file ..