Board logo

标题: [问题求助] [现在没错了]该Linux shell出错,求解决 [打印本页]

作者: 111    时间: 2015-2-6 17:09     标题: [现在没错了]该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出错,求解决

换行符搞错了
作者: DAIC    时间: 2015-2-6 23:13

请详细说明出了什么错
作者: 111    时间: 2015-2-11 16:02

回复 2# DAIC


    I'm so sorry,我把换行符搞错了




欢迎光临 批处理之家 (http://bathome.net./) Powered by Discuz! 7.2