#!/bin/sh echo "Please enter a password containing numbers and letters" read password if [[password =~ [0-9] ]] then echo "Successful" else echo "Fail" fi