tolikpunkoff Aug 29th, 2016 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #check integer positive and negative numbers in bash variables
- if (echo "$1" | grep -E -q "^-?[0-9]+$"); then
- echo "Number"
- echo "Not Number"
RAW Paste Data