mirror of https://github.com/CrimsonTome/tldr.git
find: added options for multiple search criteria and empty files
added path for -empty optionwaldyrious/alt-syntax
parent
1f74ef276d
commit
f3e3035de7
|
@ -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'}}
|
||||
|
|
Loading…
Reference in New Issue