Arithmetic in sh
never remember this
LIMIT=15
a=1
cd $SRC
for filename in *
do
if (( a <= LIMIT ))
then
mv "$filename" "$TARG"
((a += 1))
fi
done
Subscribe via RSS
never remember this
LIMIT=15
a=1
cd $SRC
for filename in *
do
if (( a <= LIMIT ))
then
mv "$filename" "$TARG"
((a += 1))
fi
done
Subscribe via RSS