shell script function read code example Example: shell script function read read -s -p “Enter Password: ” pswd