tldr/pages/common/wc.md

16 lines
217 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 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}}`