Question: Which statement can be used in a Bash script to determine if variable $ num 1 is greater than $ num 2 , assuming both

Which statement can be used in a Bash script to determine if variable $ num1 is greater than $ num 2, assuming both variables contain integers?
A if ($num1-gta $num2)
B if [ $num1 gt $num2]
C if ["$num1"-gt "$num2"]
D if ["$num1">"$num2"]
Which statement can be used in a Bash script to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!