Bash Scripting - Conditionals
Which of the following is the correct way to write an if statement that checks if variable
count equals 10 in bash?count equals 10 in bash?then after the condition.[ $count -eq 10 ] and then. if ( $count == 10 ) then uses parentheses and wrong syntax. if $count = 10 then misses brackets and uses single equals. if [[ $count = 10 ]] uses double brackets but misses then.then keyword [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions