If the script requires the input of a ``secret" string, the string typed from the keyboard should not be displayed on the screen. To stop the display of the characters typed,
stty -echomay be used.
To resume echoing of the characters,
stty echois used.
#!/bin/sh echo "Please enter your passcode: \c" stty -echo read PASSCODE stty echo echo "The passcode was not seen when typed."