Created
September 21, 2018 08:25
-
-
Save seeni-dev/45671bbc516eb41a8b8d6411ea6c3310 to your computer and use it in GitHub Desktop.
shell if condition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $a -eq $b ] # -eq tests whether left operand is equal to the right operand | |
then | |
echo "a is equal to b" | |
else | |
echo "a and b are not equal" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment