Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-06 00:20:12 +00:00
parent 22576ac740
commit ce31a6d914
16 changed files with 168 additions and 14 deletions

View File

@@ -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}}`