Skip to content

Instantly share code, notes, and snippets.

@seeni-dev
Created September 21, 2018 08:25
Show Gist options
  • Save seeni-dev/45671bbc516eb41a8b8d6411ea6c3310 to your computer and use it in GitHub Desktop.
Save seeni-dev/45671bbc516eb41a8b8d6411ea6c3310 to your computer and use it in GitHub Desktop.
shell if condition
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