~/wc(1) en

WC(1)General Commands ManualWC(1)

NAME

wc - count lines, words and characters

SYNOPSIS

wc [-lwc] [file ...]

DESCRIPTION

Counts what it is given, or what it is handed down a pipe. With no flags it prints all three: lines, words, characters.

A note’s lines are its paragraphs here, the same shape head, tail and grep -n count in, because that is how the shell is handed a note. A file you wrote yourself has the lines you put in it.

OPTIONS

-l
lines only
-w
words only
-c
characters only

EXAMPLES

wc -l about.md

ls | wc -l

grep -r vegan | wc -l

SEE ALSO

sort(1), uniq(1), grep(1), sh(1)

tilenkoren.com2026WC(1)