摘要:
shift 用户将参数左移#!/bin/bashwhile (($#))do echo $1; shiftdone 阅读全文
posted @ 2015-08-25 19:13
cbffr
阅读(152)
评论(0)
推荐(0)
摘要:
中括号[和 test 命令等价,用户布尔判断,比如:1 a='abc'2 if [ $a == 'abc' ]3 then4 echo "yes"5 else6 echo "no"7 fi等价于1 if test $a == 'abc'2 then3 echo "yes"4 el... 阅读全文
posted @ 2015-08-25 18:40
cbffr
阅读(212)
评论(0)
推荐(0)

浙公网安备 33010602011771号