소스 검색

find: added options for multiple search criteria and empty files

added path for -empty option
Cvetomird91 9 년 전
부모
커밋
f3e3035de7
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      pages/common/find.md

+ 8 - 0
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'}}