skip to main
|
skip to sidebar
Shell Script Heaven
Tuesday, 3 February 2009
Find files older than 3 days
This script finds all files with a modify time of 3 days ago or more.
It then uses the exec command to run a command on every match found,
it could easily be rm to remove files instead of listing them.
find /home/ -type f -mtime +3 -exec ls -l {} \;
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
▼
2009
(13)
▼
February 2009
(6)
Find files older than 3 days
Set date and time script
Tripwire Prune Report Script
How to remove last line of the file - Shell Progra...
Shell Script or perl help. to write sections of a ...
Array in Shell Script - Shell Beginner
►
January 2009
(7)
DistroWatch.com: News
Loading...
HowtoForge - Linux Howtos and Tutorials -
Loading...
GNS Science - GeoNet: Recent New Zealand Earthquakes.
Loading...
Labels
Backup
(1)
case
(1)
date
(1)
function
(1)
myksysb
(1)
Restore
(1)
sed
(1)
Followers
No comments:
Post a Comment