Prasad Banisetti
Tuesday, April 26, 2011
Script for Finding more than 7 days old files and perform compression and move it to destination folder
Script for Finding more than 7 days old files and perform compression and move it to destination folder
find "Source Directory" -type f -mtime +7 | \
> while read file
> do
> compress $file
> mv $file.Z "Destination Directory"
> done
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment