Linux statistics-related command learning

Source: Internet
Author: User
Linux statistics-related command Learning 1. find the row grep, egrep: www.2cto. com2. extract valuable information and discard useless information. cut: for example, use double quotation marks as separators. use the second segment: cut-d \ & quot;-f2file3. processing the row sed: for example, replacing the row hello with null: s...
Linux statistics-related command Learning 1. find the qualified row grep, egrep: www.2cto.com 2. extract valuable information and discard useless information. cut: for example, use double quotation marks as separators. use the second segment: cut-d \ "-f2 file 3. processing the row sed: for example, replacing the row hello with null: sed's/hello // g' file (the symbol after s represents the separator) 4. advanced statistics on script programming awk: www.2cto.com 5. sort by row. row statistics wc, uniq: for example, number of rows wc-l for statistics not repeated number of rows: sort file | uniq-uc (-u table shows unique,-c indicates statistics) for statistics repeated number of rows: sort file | uniq-dc (-d indicates repetition,-c indicates statistics)

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.