mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 19:56:55 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Find files matching multiple path/name patterns:
|
||||
|
||||
`find {{root_path}} -path '{{**/path/**/*.ext}}' -or -name '{{*pattern*}}'`
|
||||
`find {{root_path}} -path '{{*/path/*/*.ext}}' -or -name '{{*pattern*}}'`
|
||||
|
||||
- Find directories matching a given name, in case-insensitive mode:
|
||||
|
||||
@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`find {{root_path}} -daystart -mtime {{-1}} -exec {{tar -cvf archive.tar}} {} \+`
|
||||
|
||||
- Find empty files (0 byte) or directories and delete them verbosely:
|
||||
- Search for either empty files or directories and delete them verbosely:
|
||||
|
||||
`find {{root_path}} -type {{f|d}} -empty -delete -print`
|
||||
|
||||
Reference in New Issue
Block a user