Sample parameter validation script.sh

#!/bin/bash echo "`basename $0` Tool" [[ $# != 3 ]] && echo "Invalid number of arguments" && echo "Sample Call : create_ftp.sh <numeric_partner_id> <username_alphanum> <password_alphanum>" && exit 128 #number re re='^[0-9]+$' if [[ $1 =~ $re ]] ; then PARTNERID=$1 echo "Partner id set to $1" else echo "Invalid param #1 should be numeric" echo…