1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 10:17:58 +01:00

common verb conjugation for all tr command descriptions

This commit is contained in:
Daniel Senff 2015-03-14 16:34:38 +01:00
parent 70017a6200
commit 7f48d18e12

View file

@ -2,11 +2,11 @@
> translate characters - run replacements based on single characters and character sets
- Replace all occurrences of a character in a file, and prints the result
- Replace all occurrences of a character in a file, and print the result
`tr {{find_characters}} {{replace_characters}} < {{filename}}`
- Maps each character of the first set to the corresponding character of the second set.
- Map each character of the first set to the corresponding character of the second set.
`tr 'abcd' 'jkmn' < {{filename}}`
@ -14,14 +14,14 @@
`tr -d '{{input_characters}}'`
- Compresses a series of identical characters to a single character.
- Compress a series of identical characters to a single character.
`tr -s '\n'`
- Translate the contents of the file to upper-case, prints result.
- Translate the contents of the file to upper-case and print result.
`tr "[:lower:]" "[:upper:]" < {{filename}}`
- Strip out non-printable characters from the file, prints result.
- Strip out non-printable characters from the file and print result.
`tr -cd "[:print:]" < {{filename}}`