Linux CLI - Linux Basics and Terminal
What is wrong with this script snippet?
if [ $value -eq 10 ] then echo "Value is 10" fi
if [ $value -eq 10 ] then echo "Value is 10" fi
then keyword must be on a new line or after a semicolon following the condition. Here, the newline after the condition satisfies this.[ $value -eq 10 ] before then, so it's valid syntax with no error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions