- 帖子
- 101
- 积分
- 142
- 技术
- 5
- 捐助
- 0
- 注册时间
- 2012-8-20
|
[问题求助] [现在没错了]该Linux shell出错,求解决
本帖最后由 111 于 2015-2-11 16:03 编辑
#shell.
echo "`date` AI" >>/cache/talk.txt
echo "Hello,I'm talk AI." >>/cache/talk.txt
echo " ">>/cache/talk.txt
while
do
busybox clean
cat /cache/talk.txt
echo "----------------------------"
echo 'You say:'
read say
echo "`date` You" >>/cache/talk.txt
echo "$say" >>/cache/talk.txt
echo " " >>/cache/talk.txt
case $say in
exit)
break
;;
*)
echo "`date` AI" >>/cache/talk.txt
echo "Sorry,I don't know what do you say." >>/cache/talk.txt
echo " ">>/cache/talk.txt
;;
esac
以上Linux shell出错,求解决
换行符搞错了 |
|