Here's a list of the most commonly used wildcards in bash: You can use wildcards with any command that accepts file names as arguments. linux下的很多命令,比如 rsync ,scp , tar 都有--exclude的选项参数,PATTERN就是使用bash 的wildcard character.Wildcard
Matches
* zero or more characters ? exactly one character [abcde] exactly one character listed [a-e] exactly one character in the given range [!abcde] any character that is not listed [!a-e] any character that is not in the given range {debian,linux} exactly one entire word in the options given
bash 下的命令行通配符
最新推荐文章于 2023-08-04 10:06:40 发布
本文详细介绍了在Bash中常用的通配符及其用途,包括*(匹配任意多个字符)、?(匹配任意单个字符)、[abcde](匹配括号内的任一字符)、[a-e](匹配指定范围内的任一字符)、[!abcde](匹配除括号内列出之外的任一字符)、{debian,linux}
375

被折叠的 条评论
为什么被折叠?



