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.
分享到:
相关推荐
bash下bash-completion包则提供了tab键补充二级命令的功能,其本质是在/etc/bash-completion.d/目录下创建了相应的tab键补全策略,可以手动添加自定义的补全功能。
bash shell 的基础语法介绍。 1.bash的环境配置和配置文件介绍 2.bash的通配符,参数,变量,表达式,函数,正则表达式
下载本附件,放到你的用户主目录,在你的.bash_profile或者.bashrc,或者.profile里加入: if [ -f ~/.git-completion.bash ]; then . ~/.git-completion.bash fi 然后source一下或者重新登录,你的git就支持自动...
bash官方手册/Bash Reference Manual
命令均在Git Bash下完成,兼容Linux和Mac
linux 服务器GNU Bash小于版本4.3有操作系统命令注入漏洞,需要对bash升级,下载解压 #tar zxvf bash-4.4.tar.gz #cd bash-4.4 #./configure (如果centos7编译失败,请先安装#yum install gcc) #make #make ...
BASH官方文档,BASH官方文档,BASH官方文档
和其他Unix shell 一样,它支持文件名替换(通配符匹配)、管道、here文档、命令替换、变量,以及条件判断和循环遍历的结构控制语句。包括关键字、语法在内的基本特性全部是从sh借鉴过来的。其他特性,例如历史命令...
bash 入门经典 不可不看哦 bash 入门经典 不可不看哦 bash 入门经典 不可不看哦
与micromatch,minimatch和multimatch相似,但仅完整地支持Bash 4.3通配符(不支持exglob,posix括号或花括号) 请考虑关注该项目的作者 ,并考虑为该项目以显示您的 :red_heart_selector: 和支持。目录细节安装...
RHCERHCE bash RHCE bash RHCE bash RHCE bash RHCE bash RHCE bash RHCE bash bash
官方的bash手册 讲述bash脚本语法规范 和linux相关配置 很好的资料
windows下的bash,安装方法详见readme 支持中文显示
linux下提示bash-command not found.docx
redhat bash漏洞补丁包含文件:bash-4.1.2-15.el6_5.2.i686.rpmbash-4.1.2-15.el6_5.2.x86_64.rpmbash-3.0-27.el4.i386.rpmbash-3.0-27.el4.x86_64.rpmbash-3.2-33.el5_11.4.i386.r... redhat bash漏洞补丁 包含文件...
bash-3.0-27.0.3.el4.i386.rpm bash-debuginfo-3.0-27.el4.4.i386.rpm 2、rhel 4.x 64位 bash-3.0-27.el4.x86_64.rpm bash-debuginfo-3.0-27.el4.4.x86_64.rpm 3、centos5.x_32 bash-3.2-33.el5.1.i386.rpm bash-3.2...
Bash使用
bash.bash_logout888
git-bash.exe