Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- args=("$@")
- if test $((${args[0]})) -ne $((${args[1]}))
- then
- if test $((${args[0]})) -gt $((${args[1]}))
- then
- echo "Hello, I'm compare, and ${args[0]} is greater than ${args[1]}"
- else
- echo "Hello, I'm compare, and ${args[0]} is smaller than ${args[1]}"
- fi
- else
- echo "Hello, I'm compare, and ${args[0]} is equal to ${args[1]}"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement