rust-wc1
Display newline, word, and byte counts for each file, and a total line if more than one file is specified. with no file, or when file is -, read standard input.
Usage
wc [{-c | --bytes}]
[{-m | --chars}]
[--files0-from]
[{-l | --lines}]
[{-L | --max-line-length}]
[--total]
[{-w | --words}]
[{-h | --help}]
[{-V | --version}]
[files]
Overview
Display newline, word, and byte counts for each FILE, and a total line if more than one FILE is specified. With no FILE, or when FILE is -, read standard input.
Options
-
-c, --bytes -
print the byte counts
-
-m, --chars -
print the character counts
-
--files0-from=F -
read input from the files specified by
NUL-terminated names in file F;
If F is - then read names from standard input
-
-l, --lines -
print the newline counts
-
-L, --max-line-length -
print the length of the longest line
-
--total=WHEN -
when to print a line with total counts;
WHEN can be: auto, always, only, never
-
-w, --words -
print the word counts
-
-h, --help -
Print help
-
-V, --version -
Print version
- [files]
Version
v0.0.30
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.
--total since Debian 13 (Trixie);
-V since Debian 13 (Trixie);
-h since Debian 13 (Trixie).