delete files older than x days



$ find /path/to/folder/*.file -mtime +1 -exec rm -f {} \;

1. Find all the files in the given path
2. -mtime, specifies the number of days old than today.
+1, tells files older than 1 day.
3. -exec, executes the given command like "rm -f"
4. {} \; , ends the command

Comments

Anonymous said…
order klonopin us pharmacycialis pills for men

[url=http://www.bebo.com/buylevitraonline1]buy levitra online pharmacy online[/url]

Popular posts from this blog

Repeat Table Header in all pages in BIP

Limit rows per page

Configure Concurrent Reports to be run