function isInteger () { echo "$@" | grep -q -v "[^-0-9]" } if isInteger 1975; then echo "Yes, that is an integer"; fi
No comments:
Post a Comment