Shell基本命令

25 Aug 2013, by

基本语法

if [ boolean ]; then
elif [ boolean ]; then
else
fi
case  $xx in
  "aa")
    echo "aa"
    ;;
  "bb")
    echo "bb"
    ;;
  *)
    echo "other"
    exit 1
    ;;
esac