1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.nl/common/wc.md

29 lines
680 B
Markdown
Raw Normal View History

2024-06-18 22:03:31 +02:00
# wc
> Tel regels, woorden en bytes.
> Meer informatie: <https://www.gnu.org/software/coreutils/manual/html_node/wc-invocation.html>.
2024-06-18 22:03:31 +02:00
- Tel alle regels in een bestand:
`wc {{[-l|--lines]}} {{pad/naar/bestand}}`
2024-06-18 22:03:31 +02:00
- Tel alle woorden in een bestand:
`wc {{[-w|--words]}} {{pad/naar/bestand}}`
2024-06-18 22:03:31 +02:00
- Tel alle bytes in een bestand:
`wc {{[-c|--bytes]}} {{pad/naar/bestand}}`
2024-06-18 22:03:31 +02:00
- Tel alle karakters in een bestand (rekening houdend met multi-byte karakters):
`wc {{[-m|--chars]}} {{pad/naar/bestand}}`
2024-06-18 22:03:31 +02:00
- Tel alle regels, woorden en bytes van `stdin`:
`{{find .}} | wc`
- Tel de lengte van de langste regel in aantal karakters:
`wc {{[-L|--max-line-length]}} {{pad/naar/bestand}}`