1 #!/bin/bash2 #3 [ e "/etc/passwd" ] || (echo 'No such file.';exit 1)4 if [ $? -eq 1 ]5 then6 exit7 fi8 echo "the file exists."9 exit 0第三行那个||怎么理解,是”或“吗?
呼啦一阵风
相关分类