Cut, tr, wc, sort4

Source: Internet
Author: User

1. head FILE

2. tail FILE

:-F: tracks file changes;

3. cut and trim command

Space is 'or' must be in the middle of the quotation mark );

4. tr conversion or deletion of specified characters;

Tr-t [a-z] [A-Z] </tmp/test.txt converts lowercase letters to uppercase letters;

5. wc: word count Statistical File


-L only displays rows;

-W: Only displays the number of words;

-C: only the number of characters is displayed;


6. sort text sorting

-R is sorted in reverse order;

-N is ordered by numerical values;

-T specifies the field separator;

-K specifies the sorting field;


This article is from the blog "Nick Liu's blog", please be sure to keep this source http://zkhylt.blog.51cto.com/3638719/1300659

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.