Update cheatsheets

This commit is contained in:
ivuorinen
2025-02-03 00:17:52 +00:00
parent a3844df520
commit 85f0642d2d
6 changed files with 152 additions and 9 deletions

View File

@@ -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`