shell shiftの使い方

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

Source

Posted by arkgame