Measure the test taker's knowledge about file wildcards.

Source: Internet
Author: User

3. wildcard file name

Glob

Special characters, metacharacters, do not represent the surface meaning of the characters, but can only


Match a string that meets the specified condition;


*: Any character of any length a * B, starting with a and ending with B );


? : Any single character? B, a character between a and B );


[]: Match any single character a [character] B within the specified range.


[]) [A-zA-Z]);


Ls a [''] [a-zA-Z] displays the files with spaces starting with;

4. man 7 glob)


[: Alnum:] [: alpha:] [: blank:] [: cntrl:]

[: Digit:] [: graph:] [: lower:] [: print:]

[: Punct:] [: space:] [: upper:] [: xdigit:]


[: Alpha:] = [a-zA-Z]

[: Digit:] = [0-9]

[: Lower:] = [a-z]

[: Upper:] = [A-Z]

[: Alnum:] = [a-zA-Z0-9]

[: Space:] single blank character

[: Punct:] All punctuation marks

[: Print:] All printed characters


This article is from the blog "Nick Liu's blog", please be sure to keep this source http://zkhylt.blog.51cto.com/3638719/1300701

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.