Prabhath Kota
PySpark, BigData, SQL, Hive, AWS, Python, Unix/Linux, Shortcuts, Examples, Scripts, Perl
Apr 26, 2012
Delete files older than X days on Linux
find /path/to/files* -mtime +5 -exec rm {} \;
This is an example, which deletes files older than 5 days from unix command line itself
Note:
1) Apply this from unix command line itself
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment