nsbin/old/backup-smaller-dirs
Nico Schottelius 501aa0eff8 more cleanups
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-12-28 19:45:49 +01: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