From c92cd2281ebfbbd4983bf9de1e46b6b8a5ecfe72 Mon Sep 17 00:00:00 2001 From: Rajiv Nair Date: Sun, 27 Dec 2015 11:22:17 +0530 Subject: [PATCH] Add find -delete --- pages/common/find.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/find.md b/pages/common/find.md index 98e8f9590..d09e06077 100644 --- a/pages/common/find.md +++ b/pages/common/find.md @@ -19,3 +19,7 @@ - find files using case insensitive name matching, of a certain size `find {{root_path}} -size +500k -size -10MB -iname {{'*.TaR.gZ'}}` + +- delete files by name, older than a certain number of days + +`find {{root_path}} -name {{'*.py'}} -mtime {{-180d}} -delete` \ No newline at end of file