shell 腳本判斷分支

wangshumin@machine2:~$ cat   test3 #!/bin/bash echo "v1=?????" read v1 if [ 10 = $v1 ] ; then  echo "v1=$v1"  else echo "$v1....." fi  wangshumin@machine2:~$ sh  test3 v1=????? 10 v1=10 wangshumin@mac
相關文章
相關標籤/搜索