tldr/pages/common/wc.md
2016-02-10 19:49:07 +02:00

20 lines
272 B
Markdown

# wc
> Count words, bytes, or lines.
- Count lines in file:
`wc -l {{file}}`
- Count words in file:
`wc -w {{file}}`
- Count characters (bytes) in file:
`wc -c {{file}}`
- Count characters in file (taking multi-byte character sets into account):
`wc -m {{file}}`