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