Bash Scripting - File Operations in Scripts
Identify the error in this bash snippet that checks if
config.cfg exists:if [ -e config.cfg ] echo "Exists" fi
config.cfg exists:if [ -e config.cfg ] echo "Exists" fi
then keyword after the condition in an if statement.then after [ -e config.cfg ], causing a syntax error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions