Special characters in Linux

Source: Internet
Author: User

Special Character Processing for Shell in Linux: in non-regular expressions, matching is not greedy: * match any string in the file name, including null string? Match any single character in the file name [a-z] to match any single character in [! A] Match! Any subsequent characters> rewrite with redirection, new if not,> append the content <standard input 2> & 1, and output the error together. solve the Problem of 1> a.txt 2> a.txt conflict 1> & 2 output the normal output together with the error. solve the Problem of 1> a.txt 2> a.txt conflict 0 <m.txt uses the file m as the standard input 1> m.txt redirects the standard output to the file m <&-Disable the standard input 2> &- disable Error output, 2>/dev/null $ () indicates execution () the statement <1.txt> 2.txt uses the 1.txt file as the standard input and uses the 2.txt file as the standard output. <filename uses the f I l e n a m e file as the standard input. <delimiter reads data from the standard input, until the d e l I m I t e r separator echo aa> temp.txt & let the command be executed in the background, that is, the echo aa> temp.txt 2> & 1 & background is not displayed and the standard Output errors and errors are all redirected to temp.txt nohup command & the background executes the exit account and continues ls [! 0-9] * display the ls ??? N * starts with a, followed by n

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.