nsbin/backup-smaller-dirs
Nico Schottelius d3c6e29902 Initial commit
2006-07-20 09:54:37 +02:00

17 lines
198 B
Text
Executable file

i=0
dir=0
max_files_per_dir=100
mkdir -p $dir
for a in $@; do
if [ $i = $max_files_per_dir ]; then
((dir+=1))
mkdir -p $dir
i=0
fi
mv -i "$a" $dir
((i+=1))
done