先從一個最簡單的例子看起: $ cat myscript7 #!/bin/sh if [ -f /etc/passwd ]; then echo "/etc/passwd is a file" else echo "PANIC : /etc/passwd is not a file!!"
確定! 回上一頁