导航

2012年2月9日

linux shell 语法

摘要: 第一行 #! bin/sh结尾 exit 0判断:i="morning"if test "&i" -eq "morning" then echo "&i"elif test "&i" -eq "afternoon" then echo "$i"else echo "night"fiecho "please input yes or no"read icase ($i) in [yY] | [y 阅读全文

posted @ 2012-02-09 10:31 李泽 阅读(351) 评论(0) 推荐(0) 编辑