Linux Shell/bash中的模式和正则表达式
bash中的ls@(*xx|*AK)命令Linux Shell/bash中的模式和正则表达式,linux,bash,unix,Linux,Bash,Unix,bash中的ls@(*xx|*AK)命令 “在这里签名”的目的是什么?签名的作用是什么 来自man bash的“路径名扩展”下: 它不是正则表达式。这是Bash的扩展glob模式。有关详细信息,请参见Bash手册中的 默认情况下,未启用扩展全局模式支持。要启用它,请运行shopt-s extglob。有关shopt命令的更多详细信息,请参阅 @(pattern-list) Matches one of the given patterns a pattern-list is a lis
“在这里签名”的目的是什么?签名的作用是什么 来自man bash的“路径名扩展”下: 它不是正则表达式。这是Bash的扩展glob模式。有关详细信息,请参见Bash手册中的 默认情况下,未启用扩展全局模式支持。要启用它,请运行
shopt-s extglob
。有关shopt
命令的更多详细信息,请参阅
@(pattern-list)
Matches one of the given patterns
a pattern-list is a list of one or more patterns separated by a |.