*: replace file(s) syntax and add path/to/ to more things (#9592)

* Fix file(s) and more path/to

* Update pages.it/common/rm.md

Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>

* thanks emily your suggestion was dogshit

https://github.com/tldr-pages/tldr/blob/main/contributing-guides/translation-templates/common-arguments.md

Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>
This commit is contained in:
pixel
2022-12-06 07:47:56 +01:00
committed by GitHub
parent 54239c32f4
commit 263508cd44
40 changed files with 83 additions and 83 deletions

View File

@@ -5,7 +5,7 @@
- Replace all occurrences of a character in a file, and print the result:
`tr {{find_character}} {{replace_character}} < {{filename}}`
`tr {{find_character}} {{replace_character}} < {{path/to/file}}`
- Replace all occurrences of a character from another command's output:
@@ -13,20 +13,20 @@
- Map each character of the first set to the corresponding character of the second set:
`tr '{{abcd}}' '{{jkmn}}' < {{filename}}`
`tr '{{abcd}}' '{{jkmn}}' < {{path/to/file}}`
- Delete all occurrences of the specified set of characters from the input:
`tr -d '{{input_characters}}' < {{filename}}`
`tr -d '{{input_characters}}' < {{path/to/file}}`
- Compress a series of identical characters to a single character:
`tr -s '{{input_characters}}' < {{filename}}`
`tr -s '{{input_characters}}' < {{path/to/file}}`
- Translate the contents of a file to upper-case:
`tr "[:lower:]" "[:upper:]" < {{filename}}`
`tr "[:lower:]" "[:upper:]" < {{path/to/file}}`
- Strip out non-printable characters from a file:
`tr -cd "[:print:]" < {{filename}}`
`tr -cd "[:print:]" < {{path/to/file}}`