Chinaunix

标题: 无聊, 21世纪的爱情故事 自娱自乐 [打印本页]

作者: kala_fly    时间: 2010-09-13 14:37
标题: 无聊, 21世纪的爱情故事 自娱自乐
本帖最后由 kala_fly 于 2010-09-13 14:45 编辑
  1. #!/bin/bash


  2. echo "Love Story..."

  3. sleep 2

  4. echo "OK. Let's go..."

  5. sleep 2

  6. echo "Where is the beginning?"

  7. sleep 3

  8. echo -n "The answer is ..."
  9. sleep 3
  10. echo "NOwhere"

  11. sleep 3
  12. echo "I am a Black Beauty"

  13. read -p "Do you have a car?" a1
  14. read -p "Do you have a house to live?" a2


  15. if [ $a1 = "yes" ] && [ $a2 = "yes" ];
  16. then
  17.         echo "Great!"
  18.         sleep 1

  19.         echo "You are the guy what I want!"
  20.         exit 0
  21. else

  22.                 while :
  23.                 do
  24.                         ((i++))
  25.                         echo "Computing..."

  26.                         sleep 1
  27.                         echo "Confusing..."
  28.                         if [ $i -gt "10" ]
  29.                         then
  30.                                 echo "Sorry, cowboy, I won't marry you..."
  31.                                 break
  32.                         fi
  33.                 done       
  34. fi

  35. sleep 5

  36. echo "E...Wait, wait..."

  37. sleep 3
  38. echo "?"
  39. sleep 3

  40. read -p "Do you really love me?" a3

  41. if [ $a3 = "yes" ]
  42. then
  43.         echo "OK, We can keep in touch, and make friends echo other."
  44.         echo "Any way, Good LUCK!"
  45.         exit 0
  46. else
  47.         echo "we'r DONE right now!"
  48.         sleep 3
  49. fi

  50. clear


  51. echo "This is the an ordinary love sotry in the morden time.."
  52. sleep 2
  53. echo "Now, I have nothing to say...SEE U && GOOD LUCK"

复制代码

作者: iori809    时间: 2010-09-13 15:05
echo "OK, We can keep in touch, and make friends echo other."
应该改成
echo "OK, We can keep in touch, and make friends each other."
呵呵~写的不错~不过也不能代表都是这样
其实以前也讲究门当户对
作者: Shell_HAT    时间: 2010-09-13 15:20
21世纪应该把friends改成love
作者: lkk2003rty    时间: 2010-09-13 15:45
21世纪应该把friends改成love
Shell_HAT 发表于 2010-09-13 15:20



    这个建议颇有黑哥的风采。。。。
作者: 122285969    时间: 2010-09-13 15:47


LZ很清闲
作者: kala_fly    时间: 2010-09-13 15:53
{:2_168:}{:2_168:}用Shell来讲自己的故事吧。
作者: jiannma    时间: 2010-09-13 19:21

作者: dibug    时间: 2010-09-13 22:05
kanbudong
作者: 论坛ID    时间: 2010-09-14 08:12
不错不错  赞
作者: paktc    时间: 2010-09-14 08:54
改了一个字母  
  echo "You are the gay what I want!"

作者: expert1    时间: 2010-09-14 08:56

作者: 海客乘天风    时间: 2010-09-14 09:54
强啊
作者: liaosnet    时间: 2010-09-14 10:56

作者: beyondfly    时间: 2010-09-19 14:17
LZ写得不错啊
作者: kangshao    时间: 2010-09-19 14:38
太有才了!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2