Update cheatsheets

This commit is contained in:
ivuorinen
2025-07-24 00:22:02 +00:00
parent faccb95d5c
commit e6afdf72af
27 changed files with 113 additions and 50 deletions

View File

@@ -10,11 +10,11 @@ source: https://github.com/tldr-pages/tldr.git
- Do a dry-run renaming a directory of PNGs with a literal string replacement:
`repren --dry-run --rename --literal --from '{{find_string}}' --to '{{replacement_string}}' {{*.png}}`
`repren {{[-n|--dry-run]}} --rename --literal --from '{{find_string}}' --to '{{replacement_string}}' {{*.png}}`
- Do a dry-run renaming a directory of JPEGs with a regular expression:
`repren --rename --dry-run --from '{{regular_expression}}' --to '{{replacement_string}}' {{*.jpg}} {{*.jpeg}}`
`repren --rename {{[-n|--dry-run]}} --from '{{regular_expression}}' --to '{{replacement_string}}' {{*.jpg}} {{*.jpeg}}`
- Do a find-and-replace on the contents of a directory of CSV files:
@@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git
- Do both a find-and-replace and a rename operation at the same time, using a pattern file:
`repren --patterns {{path/to/patfile.ext}} --full {{*.txt}}`
`repren {{[-p|--patterns]}} {{path/to/patfile.ext}} --full {{*.txt}}`
- Do a case-insensitive rename:
`repren --rename --insensitive --patterns {{path/to/patfile.ext}} *`
`repren --rename {{[-i|--insensitive]}} {{[-p|--patterns]}} {{path/to/patfile.ext}} *`