mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-10 11:58:15 +00:00
Update cheatsheets
This commit is contained in:
6
tldr/tr
6
tldr/tr
@@ -22,11 +22,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Delete all occurrences of the specified set of characters from the input:
|
||||
|
||||
`tr -d '{{input_characters}}' < {{path/to/file}}`
|
||||
`tr {{[-d|--delete]}} '{{input_characters}}' < {{path/to/file}}`
|
||||
|
||||
- Compress a series of identical characters to a single character:
|
||||
|
||||
`tr -s '{{input_characters}}' < {{path/to/file}}`
|
||||
`tr {{[-s|--squeeze-repeats]}} '{{input_characters}}' < {{path/to/file}}`
|
||||
|
||||
- Translate the contents of a file to upper-case:
|
||||
|
||||
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Strip out non-printable characters from a file:
|
||||
|
||||
`tr -cd "[:print:]" < {{path/to/file}}`
|
||||
`tr {{[-cd|--complement --delete]}} "[:print:]" < {{path/to/file}}`
|
||||
|
||||
Reference in New Issue
Block a user