`
mineral
  • 浏览: 287410 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

bash下的通配符 Wildcard character

阅读更多

Here's a list of the most commonly used wildcards in bash:

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

You can use wildcards with any command that accepts file names as arguments.

 

 

linux下的很多命令,比如  rsync ,scp , tar 都有--exclude的选项参数,PATTERN就是使用bash 的wildcard character. 

 

 

 

 

 

 

 

分享到:
评论
1 楼 di1984HIT 2014-08-01  
x谢谢你啊。

相关推荐

Global site tag (gtag.js) - Google Analytics