what are the different type of Date functions?

Hi I am planning to create a script that would create a backup of files of previous days or months.

ls -lrt grep date | awk '{print $3$4$5}' | tar xvf | /home/tmp

can you help me with this line..

Thanks..

Try the find command with the -m option e.g. to search for files those was last accessed in n*24 days:

find /your/dir -mtime +n | tar .......

Check the -m option in the man page of find.

Regards