Shell Primer-WC

Source: Internet
Author: User

Command: WC

Option:-L view number of rows

-W View the number of words with a white-space character delimiter

-M view number of characters, file size

Description: Counts the number of bytes, words, and lines in the specified file.

-L

[Email protected] 111]# wc-l 1.txt 2.txt
6 1.txt
5 2.txt
11 Total dosage

-W


[Email protected] 111]# wc-w 3.txt
6 3.txt
[email protected] 111]# cat 3.txt
AAA BBB CCC DDD Eee FFF

-M

[[email protected] 111]# wc-m 4.txt////line break takes one character
4.txt
[email protected] 111]# cat 4.txt
1234567890

////////////////////////////////////////////////////////////

Summary: Wc-l-m-w

Shell Primer-WC

Related Article

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.