1. 程式人生 > >需求導向<=問題導向!本質導向!結果導向!

需求導向<=問題導向!本質導向!結果導向!

1 #!/bin/sh
  2 if [ "$1" = "yes" ];then
  3    echo yes
  4 elif [ "$1" = "no" ];then
  5    echo no
  6 else
  7    echo nothing
  8 fi

注意:$1外面一定要加雙引號!!!