[redhat-list-de] ksh-Script
Robert Grill
robert at systux.de
Mon Nov 1 10:22:22 UTC 2004
Hallo Richard,
ich habe hier keine Korn-Shell
aber ein symbolic link auf die bash tut es bei mir auch :-)
>Weiss jemand wie man das Unterbinden kann (eventuell mit "trap",...) ?
Wie wäre es mit case?
#!/bin/ksh
echo "\tDo you want to continue ? <y/n> \c"
read answer
case "$answer" in
n)
echo "exiting......"
echo "... type ENTER ..."
read a
exit 1
;;
y)
echo
echo "Going on ..."
echo
;;
*)
echo "Usage: $0 {y|n}"
exit 1
esac
schönen Tag noch
Robert
More information about the redhat-list-de
mailing list