场景:在linux系统中我们会使用正则表达式来拼接命令,但是在shell脚本中却无法生效。 打开bash 识别正则 shopt -s extglob 关闭bash 识别正则 shopt -u extglob