September 22, 2006

Bash Args

# I always seem to be looking for this bash script example
# it just iterates over the args of a command

if [ $# != 0 ]
then
FILE=""
while [ $# != 0 ]
do
echo "1"
shift
done
fi

No comments: