#!/bin/bash # # noecho - demonstrates turning off echo # # Turn off echo stty -echo # Prompt user to enter password echo -n "Enter a make believe password: " # Read into variable named PASS read PASS # Turn echo back on stty echo # The -e means interpret \n as newline instead of as a literal '\n' echo -e "\n" echo "The value you entered was $PASS" echo "It was not echoed to the terminal as you typed it" echo " "