CentOS tr & amp; cut command explanation

Source: Internet
Author: User

Tr
-D. Delete matching characters.
-S: delete consecutive identical characters
'[String1] ''[string2]' replace string 1 with string 2

Cut
-B is counted as one byte, letter, and space, and Chinese characters are counted as three Bytes:
For example, 1-3 (the first three bytes) Or, 1-3, 8 (the first three bytes plus the eighth byte ),
-3, 8-(before the third byte, after the eighth byte)
-C: Only one character is used as the character and only one Chinese space is used.
-D-f #/-f #-# use a combination of tabulation operators to intercept rows or multiple rows. This option is not applicable when the number of spaces and tabulation operators between each row is different.

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.