exit code 程式 指令 執行結果
2021/10/14 16:35
瀏覽68
迴響0
推薦0
引用0
#!/bin/sh
diff 1.txt 3.txt
if [ $? -ne 0 ]; then
echo "ERR !!!"
exit 0
fi
#!/bin/sh
diff 1.txt 2.txt
if [ $? -ne 0 ]
then
echo "ERR !!!"
exit 0
fi
你可能會有興趣的文章:
限會員,要發表迴響,請先登入

