Shell实例:字符串操作 逻辑判断
摘要:
#!/bin/bashecho "enter a number"#read input valueread ans#casecase $ans in 1) echo "your number is $ans" ;; 2) echo "your number is 2" ;; [3-9]) echo "your number is $ans"esacecho "Parameter numbers:$#"echo "Shell name:$0"echo "Shell a 阅读全文
posted @ 2010-12-15 11:30 张飞_ 阅读(865) 评论(0) 推荐(0) 编辑