Bash Scripting - Conditionals
How would you fix this script to correctly print "Allowed" only if age is NOT less than 18?
age=16 if [ $age -lt 18 ]; then echo "Allowed" fi
age=16 if [ $age -lt 18 ]; then echo "Allowed" fi
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions