#!/bin/bash if ! [[ "${variable}" =~ ^[0-9]+$ ]] then echo "This variable is not a integer" else echo "This variable is a integer" fi
沒有留言:
張貼留言