Linux wc command
The Linux wc command is used to count the number of lines, words, and byte (character) in a file or input stream.
Syntax:
Example:
Use -l to count the number of lines in a file
Use -w to count the number of words in a file
Use -c to count the number of bytes in a file. You can use this to count characters in a file
Use wc with Piped Input
You can also use wc with piped input in Linux and count the lines, words, and characters in input data.
Another example of wc command is to count the number of lines in the output of the previous command.
0 Comments
CAN FEEDBACK
Emoji