To save a moment of time, here's a quick check that won't save the password string to your command history: read -e -s -p "Password: " password && grep -i $password 10-million-combos.txt | wc -l && password=""