Urgent Help Pleaseeeeeeeee.......
Hi guys,
any help would be appreciated,
it is very urgent problem I have.
I have the following file names (they r dummy -but in live environment they would be something like this - all I want is I have to retreive the latest File from the existing ones :)
my data looks something like this
sample data:
---------------------
1) TEST_201220020926.txt
TEST_201220020927.txt
TEST_221220021015.txt
2) ABC_201220020926.txt
ABC_201220020927.txt
ABC_251220021012.txt
(after undescore its a date & time combination)
but I dont know the sort order of these files in real time environment -how can i do it???????
it can be any combination of date& time how do I get the latest file based on each combination provided?????
and my problem is that I have to pick up the latest file out of each combination in the sense that I have to retreive ony
( TEST_221220021015.txt & ABC_251220021012.txt) files
out of all the files.
please guys someone help me- its very urgent.
Thanks in advance
Regards.
Gandhi