select

Aus Mikiwiki
Zur Navigation springen Zur Suche springen

Der Shell-Befehl select.

Verwendung

select i in list copy del print quit
do
  case $i in
    list) more foo;;
    copy) cp foo bar;;
    del) rm foo;;
    print) pr foo | lpr;;
    quit) exit 0;; esac; done
  esac
done