mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-13 14:59:21 +00:00
Update cheatsheets
This commit is contained in:
@@ -20,14 +20,18 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`cat {{path/to/file1 path/to/file2 ...}} >> {{path/to/output_file}}`
|
||||
|
||||
- Write `stdin` to a file:
|
||||
- Write to a file interactively:
|
||||
|
||||
`cat - > {{path/to/file}}`
|
||||
`cat > {{path/to/file}}`
|
||||
|
||||
- Number all output lines:
|
||||
|
||||
`cat {{[-n|--number]}} {{path/to/file}}`
|
||||
|
||||
- Display non-printable and whitespace characters (with `M-` prefix if non-ASCII):
|
||||
- Display all characters, including tabs, line endings, and non-printing characters:
|
||||
|
||||
`cat {{[-vte|--show-nonprinting -t -e]}} {{path/to/file}}`
|
||||
`cat {{[-A|--show-all]}} {{path/to/file}}`
|
||||
|
||||
- Pass file contents to another program through `stdin`:
|
||||
|
||||
`cat {{path/to/file}} | {{program}}`
|
||||
|
||||
Reference in New Issue
Block a user