How can I use <=, >=, >, and < in bash?Instead of:if [[ $arg1 -ge $num1 && $arg2 -le $num2 ]]; then     ...fiHave something more like:if [[ $arg1 >= $num1 && $arg2 <= $num2 ]]; then     ...fi
How to use comparison operators in bash?
bash;shell script;test
These operator are used in, e.g., (( ... )) and $(( ... )) (arithmetic evaluation and arithmetic expansion respectively):if (( arg1 >= num1 )) && (( arg2 <= num2 )); then    ...fiAnd also with let.  The following is equivalent of the above:if let arg1 >= num1 && let arg2 <= num2; then    ...fiSee the section named ARITHMETIC EVALUATION in the Bash manual.