berikut contohnya scriptnya
#!/bin/bash
echo "Apa Anda Menerima Saya?"
read case;
#simple case bash structure
case $case in
Ya) echo "Accept, Diterima";;
ya) echo "Accept, Diterima";;
y) echo "Accept, Diterima";;
No) echo "refuse, ditolak";;
no) echo "refuse, ditolak";;
n) echo "refuse, ditolak";;
*) echo "wrong answer, jawaban salah"
esac
bagaimana mudah bukan
=-=-=-=-=
Powered by Blogilo
0 komentar :
Posting Komentar
Jangan Lupa Komentar ya