Bash file name metacharacter meaning 1. * match 0 or multiple arbitrary characters 2 .? Match 1 arbitrary character 3. [abc...] match a character in a bracket. if a connection line (-) is used, it indicates a character in the matching range. (For example, a-z, A... Info & nbsp; Bash file name metacharacter meaning 1. * matches 0 or multiple arbitrary characters 2 .? Match 1 arbitrary character 3. [abc...] match a character in a bracket. if a connection line (-) is used, it indicates a character in the matching range. (For example, a-z, A-Z, 0-9) 4 .[! Abc...] matches the characters not in the brackets .~ The current user's Home directory (Home) 6 .~ Name: the user's Home directory (Home) 7 .~ + Current working directory ($ PWD) 8 .~ -The last working directory ($ OLDPWD) has the extglob option :? (Pattern) matches 0 or 1 pattern * (pattern) matches 0 or more pattern + (pattern) matches 1 or more pattern @ (pattern) exactly match a pattern! (Pattern) match all strings that are not in the pattern. the pattern can be composed of multiple pattern separated by |. Matching any sub-pattern matches the entire pattern. With the globstar option: ** match all files and subdirectories. If a/is followed, only the subdirectories match.
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