May 2000
Beginner
761 pages
18h 20m
English
wc [ -lwc ] [ filename …]
wc counts lines, words, and characters in a file or in the standard input if no filename is given. A word is a string of characters delimited by a space, tab, or new line.
1 wc filex 2 who | wc -l 3 wc -l filex |
Explanation
Prints the number of lines, words, and characters in filex.
The output of the who command is piped to wc, displaying the number of lines counted.
Prints the number of lines in filex.
Read now
Unlock full access