I have to make a script that receives two parameters, of which the second must be an integer. I have no idea how to validate that.
if test $2 =~ "^[0-9]+$"
then
echo "\nNumero positivo entero"
else
echo "\nError: El numero $2 no es un numero entero positivo!!!\a"
fi