Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x=3.5 #(example)
- y=-2.5 #(example)
- if [ $x -ge 0.1 -a $x -le 5.5 ] && [ $y -ge -5.9 -a $y -le -0.1 ]; then cat="good";
- elif [ $x -ge 5.5 -a $x -le 10.5 ] && [ $y -ge -10.9 -a $y -le -5.9 ]; then cat="bad";
- fi
- echo "$cat"
Add Comment
Please, Sign In to add comment