path=$1
path1=$2
moved=0
target=
for i in `ls $path`
do
echo $moved
if [ $moved -lt 10 ]; then
target=$path1/1
mv -v $path$i $target
fi
if [ $moved -ge 10 -a $moved -le 20 ]; then
target=$path1/2
mv -v $i $target
fi
if [ $moved -ge 20 -a $moved -le 30 ]; then
target=$path1/3
mv -v $i $target
fi
if [ $moved -ge 30 -a $moved -le 40 ]; then
target=$path1/4
mv -v $i $target
fi
if [ $moved -ge 40 -a $moved -le 50 ]; then
target=$path1/5
mv -v $i $target
fi
if [ $moved -ge 50 -a $moved -le 60 ]; then
target=$path1/6
mv -v $i $target
fi
if [ $moved -ge 60 -a $moved -le 70 ]; then
target=$path1/7
mv -v $i $target
fi
if [ $moved -ge 70 -a $moved -le 80 ]; then
target=$path1/8
mv -v $i $target
fi
if [ $moved -ge 80 -a $moved -le 90 ]; then
target=$path1/9
mv -v $i $target
fi
if [ $moved -ge 90 -a $moved -le 100 ]; then
target=$path1/10
mv -v $i $target
fi
echo $i
echo $target
#mv -v $i $target
((moved++))
done