Horje
check if variable is a number in bash Code Example
check if variable is a number in bash
re='^[0-9]+$'
if ! [[ $yournumber =~ $re ]] ; then
   echo "error: Not a number" >&2; exit 1
fi




Shell

Related
check ram type Code Example check ram type Code Example
how to install terraform macos Code Example how to install terraform macos Code Example
download ubuntu 32 bit Code Example download ubuntu 32 bit Code Example
screen recorder for ubuntu Code Example screen recorder for ubuntu Code Example
git reset fork Code Example git reset fork Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12