将“&&”改写为“并且”,即“a并且b并且c”的代码示例如下:
if [ $a ] && [ $b ] && [ $c ]; then echo "a, b, and c are true" fi
上一篇:bash+commandworkingfineonlinuxshellbutnotfromcronjob
下一篇:bash- awk 从管道中获取文件名并使用它创建另一个文件