find /test -name \*.* -mtime +30
will give me the result of all modified files after 30 days.
But lets say i want to list all files that is modified in last months... what is the command to do it?
Thanks!
thanks vino for the help.
that's definately a great help.
however is there any other option than specifiying the file name?
it is because i won't have the luxury to know the old file and new file name in the folder.
sorry about that.
i am trying to backup all files in a specific directory by month.
lets say there are 50 files in that folder for month of Jan, i will move all Jan files into a Jan folder and so on for Feb as well.
Thanks!
it doesn't work.
it always concatenate all the files's modified months into mon var at once.
example is i have 6 files with 2 Jan, 4 Mar.
mon var will be assigned with "Jan Mar Mar Jan Mar Mar" at once.