Hi
Need help for the following scenario.
I am having two directories
/tmp/a and
/tmp/b.
/tmp/a again has subdirectories
/tmp/a/aa and /tmp/a/ab.
I want to run a script from
/tmp/b to search for a file user.lst in the folders
/tmp/a/aa and /tmp/a/ab, if available, i want to make a file in
/tmp/b new_user.lst which will contain the content of each user.lst file found plus the directory path (in which it has been found) for each line of the file.
E.g;
Content of user.lst in /tmp/a/aa
Content of user.lst in /tmp/a/ab
Resulting file new_user.lst in /tmp/b should contain
Quote:
apple /tmp/a/aa
orange /tmp/a/aa
cat /tmp/a/ab
rat /tmp/a/ab
Thanks,
Sudeep