shell 脚本中 在grep -E '($wo|$ni|$ta)' 这里面用变量 改为双引号,单引号会屏蔽$的取值功能。grep -E "($wo)|($ni)|($ta)" 转载:https://zhidao.baidu.com/question/303833200.html