$ cat test2.sh
#!/bin/sh
echo "アルファベット最初の文字を入力してください"
read moji
echo "2-1の答えを入力してください"
read suji
if [ "$moji" = "a" -a "$suji" -eq 1 ];then
echo "正解"
else
echo "違います"
fi
/
2009/6/29
— posted by くま at 10:53 pm TrackBack [0]
Comments