1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 16:13:31 +02:00

repren: add short options (#17330)

This commit is contained in:
Managor 2025-07-23 19:08:45 +03:00 committed by GitHub
parent dc7548e932
commit 5bc69fc6e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,11 +5,11 @@
- 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:
@ -17,8 +17,8 @@
- 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}} *`