if [ "$_ANS"="" ]; then
case $_ANS in
Y) return 0 ;;
N) return 1 ;;
esac
fi
case $_ANS in
у|Y|Yes|YES)
return 0;;
n|N|No|NO)
return 1;;
*) echo "Answer either Y or N, default ls $_DEFAULT";;
esac
done
}
display_rec() {
#diaplay_rec
#можно применить команду cat <<.
tput cup 5 3
echo "EMPLOYEE NO: $CODE"
echo "FIRST NAME : $F_NAME"
echo "SURNAME : $S_NAME"
echo "DEPARTMENT : $DEPART"
echo -e "\n\n"
}
no_recs () {
# no_recs
echo -e "\n\nSorry could not find a record with the name $STR"
}
get_rec () {