Prasad Banisetti
Tuesday, April 26, 2011
Script for finding more than 7 days old files and remove permanantly
Script for finding more than 7 days old files and remove permanantly
find "Source Directory" -type f -mtime +7 -exec rm {} \;
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
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)