Shell Learning Note Five (special characters)

Source: Internet
Author: User
特殊字符    通配符        ?:匹配任意一单子符        *:匹配任意长度字符串        []:匹配其中任意一个字符,*、?在[]中是普通字符    引号        ""、‘‘    注释符        #        #!不是注释,但必须出现脚本的第一行    大括号        变量扩展            ${VAR}            ${#STR}        通配符扩展            1、匹配多个排列组合的可能                echo {x1,x2,x3}{y1,y2,y3}                x1y1 x1y2 x1y3 x2y1 x2y2 x2y3 x3y1 x3y2 x3y3            2、匹配不同的文件                touch file{A,B}                ls file{A,B}                rm file{A,B}        语句块    控制字符        在脚本中不可用杂项    反引号        ``=$()    位置参数        $0        $1...$9,$(10)...$(n)        $#        [email protected]/$*        $?        $!    感叹号        1、逻辑反        2、用于执行history中的命令

Shell Learning Note Five (special characters)

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.