Linux-bash file name Wildcard

Source: Internet
Author: User

A list of wildcard characters:

*: Any character of any length

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/05/wKiom1U9wCOg8RQjAABrP4V2vVE382.jpg "title=" 11.jpg "alt=" Wkiom1u9wcog8rqjaabrp4v2vve382.jpg "/>

?: any single character

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/05/wKiom1U9wK_BcaAiAAC6fH1lvmo870.jpg "title=" 12.jpg "alt=" Wkiom1u9wk_bcaaiaac6fh1lvmo870.jpg "/>

Note: Represents any single character, so the abc,acc,a98c here cannot match.

[]: matches any single character within the specified range, commonly used [a-z],[0-9],[a-z]

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/01/wKioL1U9wuLz4yxJAACg0D4zrOM171.jpg "title=" 13.jpg "alt=" Wkiol1u9wulz4yxjaacg0d4zrom171.jpg "/>

[^]: Configures any single character outside the specified range, similar to the inverse

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/05/wKiom1U9wjbgPZIQAAC0jnMh2uc769.jpg "title=" 14.jpg "alt=" Wkiom1u9wjbgpziqaac0jnmh2uc769.jpg "/>

Note: [^a-z]: As long as it is not lowercase letters are counted. Matches a single character, so the match is "a98c"

Common character sets: All match only a single

[: Space:]: all whitespace characters

[:p UNCT:]: All punctuation

[: Lower:]: All lowercase letters

[: Upper:]: So capital letters

[:d Igit:]: All sets of numbers

[: Alnum:]: So letters and numbers

[: Alpha:]: So the alphabet

The above example can be changed to:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/01/wKioL1U9xO6yEMKSAAFL1zvCz2E022.jpg "title=" 15.jpg "alt=" Wkiol1u9xo6yemksaafl1zvcz2e022.jpg "/>


This article is from "The Blood of the Linux blog" blog, please be sure to keep this source http://xuezhonghua.blog.51cto.com/10167373/1639049

Linux-bash file name Wildcard

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.