Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-14 00:18:08 +00:00
parent 904f7fe0c1
commit 605e1cdfd8
20 changed files with 97 additions and 68 deletions

10
tldr/wc
View File

@@ -10,19 +10,19 @@ source: https://github.com/tldr-pages/tldr.git
- Count all lines in a file:
`wc --lines {{path/to/file}}`
`wc {{[-l|--lines]}} {{path/to/file}}`
- Count all words in a file:
`wc --words {{path/to/file}}`
`wc {{[-w|--words]}} {{path/to/file}}`
- Count all bytes in a file:
`wc --bytes {{path/to/file}}`
`wc {{[-c|--bytes]}} {{path/to/file}}`
- Count all characters in a file (taking multi-byte characters into account):
`wc --chars {{path/to/file}}`
`wc {{[-m|--chars]}} {{path/to/file}}`
- Count all lines, words and bytes from `stdin`:
@@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git
- Count the length of the longest line in number of characters:
`wc --max-line-length {{path/to/file}}`
`wc {{[-L|--max-line-length]}} {{path/to/file}}`