How to list all files older than 5 days ?
>
find /path/to/files* -mtime +5
How to delete all files older than 5 days ?
> find /path/to/files* -mtime +5 -exec rm {} \;
This blog is created to keep things which I always need to remember in Python and Linux scripting. ... and few other things.
Monday, May 9, 2016
Subscribe to:
Posts (Atom)
Followers
About Me
- Krzysztof Pakuła
- Znak zodiaku - Lew