Bash Scripting - Conditionals
Identify the error in this script:
#!/bin/bash if [ $x -gt 10 ]; then echo "Greater" else echo "Smaller"
#!/bin/bash if [ $x -gt 10 ]; then echo "Greater" else echo "Smaller"
fi to close it.fi at the end, causing syntax error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions