Script for zipping a file

HI,

I want a script which creat a zip file folder of files older than 15 days.......

please help me on this...........

Try this..to list out all the files older than 15 days.

  • find . -mtime +15 -exec ls -l {} \;

try this command
# find . -mtime +15 | xargs tar -cvf file.tar

how to zip all the files in a particular folder.

tar -cvf allmyfiles.tar *