mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 08:51:34 +00:00
Update cheatsheets
This commit is contained in:
10
tldr/wc
10
tldr/wc
@@ -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}}`
|
||||
|
||||
Reference in New Issue
Block a user