I want to get out put as folows:
100 HE01 {number of line in this file} {file created on time stamp}
200 LTXS {number of line in this file} {file created on time stamp}
(if the file does not exist then it should say FILE NOT AVAILABLE
to start with I have a input file (inputfile.txt) that contains following data:
100 HE01 file1.txt
200 LTXS file2.txt
and file1.txt & file2.txt are in the current directory. there is a chance that they file may not exist.
I tried for loop, wc -l, grep, cut but the out put is not very satis factory.
Don't hesitate to give me any go-to or pointer to finding the solution. I don't expect you to do my work ;-)