2012年10月19日

摘要: shell为GNU bash 3.2.48我想要求用户输入数字5或者6作为参数,本人参考的是鸟哥的入门课程,里面没有(目前为止)提及条件的结合,所以做过多种错误尝试: 1 # incorrect ones 2 #while [ -z "$input" || ( ! "$input" == "5" && ! "$input" == "6" ) ] 3 #while [ -z "$input" || \( ! "$input" == " 阅读全文
posted @ 2012-10-19 15:58 name2579 阅读(566) 评论(0) 推荐(0) 编辑

导航