Shell special symbol cut, sort_wc_uniq,tee_tr_split command shell special symbol

Source: Internet
Author: User

8.10 Shell Special Symbol Cut command

\ de-Semantic characters

Several commands related to pipe breaks
Usage of the cut-d command
Usage of the CUT-C command

Sort is often used in conjunction with Uniq
Sort is sorted, starting with special symbols, to numbers, to letters.

Sort-n are sorted by numbers, and special symbols and letters are considered to be 0.
Sort-nr 1.txt and return to the top sort

Wc
Vim 2.txt Input 123 newline ABC, the result of the query is 8 characters, including the line break symbol

Uniq, is the first order and then remove the duplicate

The use of Tee

Tee-a means append

Use of TR

TR changes the letter to a number, the number can only use single quotation marks, so the display is correct

The use of Split
Split-b The default cut file is X, or you can customize

The use of split-l

8.13 Shell Special Symbol

|| To denote or to mean, the following is how it is used, and when the first command executes unsuccessfully it runs the second command, and the second command is not run when the first command executes successfully

&& indicates that the previous command execution succeeds to execute the subsequent command, and if it fails, the following command is not executed

Related Quiz title: http://ask.apelearn.com/question/5437
Extended

    1. SOURCE Exec Difference http://alsww.blog.51cto.com/2001924/1113112
    2. Linux Special symbols Daquan http://ask.apelearn.com/question/7720
    3. Sort is not sorted by ASCII http://blog.csdn.net/zenghui08/article/details/7938975

Shell special symbol cut, sort_wc_uniq,tee_tr_split command shell special symbol

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.