I want to remove filenames which are generated 15 days back. where date is generated in file. I need to create another file with filename which are created in last 15 days.
Could you please provide more information on your date formate
(like . DDMMYYY or something else ) ?
Please check filename, provided in your first post and let us know.
It uses the file modification time as shown by ls -t - not the date in the filename.
If you think it lists the correct rm commands, remove the echo to really run it.
What i am trying to do is I have one text file(Eg:Filelist.txt) It has list of filenames(Filenames are contained with date as mentioned in the initial post)
I want remove the filenames from the Filelist.txt file and create new file with valid filenames
Validation Process: all filenames should not be belongs to not more than 15 days.
Note: Not from the filesystem files we are deleting filenames from one text file and creating new file.