Bash AND - TutorialKart
www.tutorialkart.com › bash-shell-scripting › bash-andBash AND Operator in IF condition In the following example, we shall use Bash AND logical operator, to form a compound boolean expression for Bash IF. We shall check if the number is even and also divisible by 10. Bash Script File #!/bin/bash num=50 if [ $ ( (num % 2)) == 0 ] && [ $ ( (num % 10)) == 0 ]; then