Hi,
My requirement goes like this.
I search for a file using its pattern in a directory. This will be a unique file in that directory. Now i want to get the next two files after the one i find based on time stamp.
e.g.
i search for the file SRSCLAR.IN12345 in a directory.
Now the directory has a list of files. For every SRSCLAR file there will be two corresponding msg and log files. all the 3 have the same time stamp. and these files will appear in this format
Feb 12 15:49 SRSCLAR.IN12345
Feb 12 15:49 invoice_msg_20080212154210.txt
Feb 12 15:49 invoice_log_20080212154210.txt
So i need the next files after SRSCLAR.IN12345 file.
Kindly help.
Thanks,
Sunny.