23,124
社区成员
发帖
与我相关
我的任务
分享
#!/bin/sh
echo "Is morning ? Please answer yes or no"
read timeof
if [ $timeof = "yes" ];then
echo "Good morning"
elif [ $timeof = "no" ];then
echo "Good afternoon"
else
echo "Sorry, $timeof is not rencognized. Enter yes or no"
fi