#!/bin/shgetchar() {stty cbreak -echodd if=/dev/tty bs=1 count=1 2> /dev/nullstty -cbreak echo}printf “Please input your passwd: ”while : ; doret=`getchar`if [ x$ret = x ]; thenechobreakfistr=”$str$ret”printf “*”doneecho “Your password is: $str”