[Linux/command] WC

Source: Internet
Author: User

The WC command prints the newline, word, and number of bytes of the destination file. Where the number of lines = total number of rows-1, the number of words according to the space-delimited number of English words statistics, that is, continuous Chinese characters (phrases, sentences) are regarded as a word.

NAME
WC-Prints the newline, word, and number of bytes for each target file.
SynopsisWC[OPTION] ... [FILE] ...WC[OPTION] ...--files0-from=Fdescription Prints the number of lines, words, and bytes for each target file, and if multiple target files are given, the total quantity is also printed.
    If the target file is not given, or the "-" symbol is given, the standard input is used as the destination file.
A word is a sequence of characters that are separated by a space that is not 0 length. The following options can be used to select what to print, and the results will always be in the following order: number of newline, word count, number of characters, number of bytes, maximum single line length.

-C,--bytesThe number of bytes to print. -M,--chars the number of characters to print. -L,--lines print the number of newline. --files0-from=F reads the file name from the F file as the input file. If f is "-", the file name is read from the standard input.

    -L,--max-line-Length Prints the maximum single-line lengths. -W, --words the number of words to print. --Help
Show Help and Exit. --version
Output version information and exit.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.