Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux Shell/bash中的模式和正则表达式_Linux_Bash_Unix - Fatal编程技术网

Linux Shell/bash中的模式和正则表达式

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

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 list of one or more patterns separated by a |.