#!/bin/bashINT=-5if [[ $INT =~ ^-?[0-9]+$ ]]; thenecho INT is an integer.elseecho INT is not an integer. >&2exit 1fiWhat does the leading ~ do in the starting regular expression?
Bash test: what does =~ do?
bash;test