bash check if file not exists 在 How do I tell if a file does not exist in Bash? - Stack Overflow 的評價
Negate the exit status with bash (no other answer has said this): if ! [ -e "$file" ]; then echo "file does not exist" fi · Negate the test inside the test ... ... <看更多>