From a7909ab6e66a87ca3f3e154df0ce244a6dabec3d Mon Sep 17 00:00:00 2001 From: Cvetomird91 Date: Wed, 30 Dec 2015 20:43:58 +0200 Subject: [PATCH 1/3] find: added options for multiple search criteria and empty files --- pages/common/find.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/find.md b/pages/common/find.md index 7abc644a7..83407c464 100644 --- a/pages/common/find.md +++ b/pages/common/find.md @@ -25,3 +25,11 @@ - delete files by name, older than a certain number of days `find {{root_path}} -name {{'*.py'}} -mtime {{-180d}} -delete` + +- find empty files + +`find -empty` + +- find files matching more than one search criteria + +`find {{root_path}} -name {{'*.py'}} -or -name {{'*.rb'}} From 63f2f129a4283fb8e039270bf98ad63acce69683 Mon Sep 17 00:00:00 2001 From: Cvetomird91 Date: Thu, 31 Dec 2015 00:19:33 +0200 Subject: [PATCH 2/3] added path for -empty option --- pages/common/find.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/find.md b/pages/common/find.md index 83407c464..21c674fa5 100644 --- a/pages/common/find.md +++ b/pages/common/find.md @@ -26,9 +26,9 @@ `find {{root_path}} -name {{'*.py'}} -mtime {{-180d}} -delete` -- find empty files +- find empty files or directories -`find -empty` +`find {{root_path}} -empty` - find files matching more than one search criteria From f3e3035de74aa56d9aea78b6d53bf9c62575ca26 Mon Sep 17 00:00:00 2001 From: Cvetomird91 Date: Wed, 30 Dec 2015 20:43:58 +0200 Subject: [PATCH 3/3] find: added options for multiple search criteria and empty files added path for -empty option --- pages/common/find.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/find.md b/pages/common/find.md index 7abc644a7..21c674fa5 100644 --- a/pages/common/find.md +++ b/pages/common/find.md @@ -25,3 +25,11 @@ - delete files by name, older than a certain number of days `find {{root_path}} -name {{'*.py'}} -mtime {{-180d}} -delete` + +- find empty files or directories + +`find {{root_path}} -empty` + +- find files matching more than one search criteria + +`find {{root_path}} -name {{'*.py'}} -or -name {{'*.rb'}}