DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
Bash test if variable is a number
[[ $1 == ?(-)+([0-9]) ]] && echo "$1 is an integer"
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Bash
#test
#variable
#number
ADD COMMENT
Topic
COMMENT
Name
2+8 =
Submit