Hi ,
I have few log files created with date as part of the name of the file
abcd1.20110429-2345
abcd2.20110502-2345
abcd3.20110505-2345
abcd3.20110509-2345
I need to extract the date out of file names(20110429) and then for all files with date less than a week then i need to parse them and extract some info out it
I am not able to extract date and then subtract from the sytem/todays date to find a weeks difference
I am thinking of doing a reverse sort on the dates after i extract them
Can any one please help me on this ?
Many thanks,
Zac