Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- a=10
- b=5
- if [ $a -eq $b ]; then
- echo "a es igual a b"
- fi
- if [ $a -ne $b ]; then
- echo "a no es igual a b"
- fi
- if [ $a -lt $b ]; then
- echo "a es menor que b"
- fi
- if [ $a -le $b ]; then
- echo "a es menor o igual a b"
- fi
- if [ $a -gt $b ]; then
- echo "a es mayor que b"
- fi
- if [ $a -ge $b ]; then
- echo "a es mayor o igual a b"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement