shell shift 用法

#!/bin/sh
while [ $# -gt 0 ]
do
    echo $1
    echo $#
    if [ ! -d $1 ]
    then
        echo "$1 not dir"
    fi
    shift
done

编程技巧