Bash Scripting - Error Handling
You want a script to exit with code 5 only if a file named
data.txt does NOT exist. Which snippet correctly does this?data.txt does NOT exist. Which snippet correctly does this?[ ! -f data.txt ] checks if file does NOT exist.if statement with exit 5 inside runs exit only if file missing.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions