Bash Scripting - Conditionals
What will be the output of this script?
#!/bin/bash num=7 if [ $num -lt 10 ]; then echo "Small" else echo "Big" fi
#!/bin/bash num=7 if [ $num -lt 10 ]; then echo "Small" else echo "Big" fi
$num -lt 10num is 7, which is less than 10, so condition is true.then branch runs, printing "Small".15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions