tldr/pages/common/wc.md

20 lines
272 B
Markdown
Raw Normal View History

2013-12-25 11:17:18 +00:00
# wc
> Count words, bytes, or lines.
2013-12-25 11:17:18 +00:00
- Count lines in file:
2013-12-25 11:17:18 +00:00
`wc -l {{file}}`
- Count words in file:
`wc -w {{file}}`
- Count characters (bytes) in file:
2013-12-25 11:17:18 +00:00
`wc -c {{file}}`
- Count characters in file (taking multi-byte character sets into account):
2013-12-25 11:17:18 +00:00
`wc -m {{file}}`