search by modified date

Hello,
How can i search for all the files in a particular directory which are not updated from past 5 days.

Thanks,
Sateesh

use the following option

find / -mtime -5 -print

Thanks for your reply. how can i get these file in to an array so that i can zip them.

u can send the stream into tar using the pipe

find / -mtime -5 -print | tar cvf test.tar

to find files in a particular dir. use this command -

find . -type f -mtime +5 -print