Answers for "bash if var equals string"

1

bash if var equals string

source=""
samples=("")
if [ $1 = "country" ]; then
   source="country"
   samples="US Canada Mexico..."
else
  echo "try again"
fi
Posted by: Guest on April-09-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language