Home
Cloud
Big Data
CI
Install
Samples
Java
Ubuntu
Maven
Archive
Linux-Ubuntu
|
wc - print word counts
Notes
Examples
Command Help (man wc)
Notes
wc [OPTION]... [FILE]...
Examples
Count files and folders:
$ ls | wc -w 14
Count lines in a file:
$ wc -l test.txt 26 test.txt
Command Help (man wc)
The following options can be used:
-w, --words |print the word counts -m, --chars |print the character counts -l, --lines |print the newline counts -c, --bytes |print the byte counts
© 2010-2022
mti
tek