This commit is contained in:
simono41 2017-11-15 14:16:45 +01:00
parent 5fdd6e7eb9
commit 7854b7eaae
3 changed files with 5 additions and 1 deletions

View file

@ -2,11 +2,14 @@
set -ex set -ex
#$(( (23-2)*2/3 ))
#cuts=$(( $1-1 ))
cuts="$1" cuts="$1"
shift shift
name=0 name=0
# wenn 100 daten und 3 cuts = 33 files # wenn 108 daten und 5 cute = 21 files je ein cut
# wenn 100 daten und 3 cuts = 33 files je ein cut
files="$(expr $# / $cuts)" files="$(expr $# / $cuts)"
create=0 create=0
i=0 i=0
@ -18,6 +21,7 @@ do
if [ "$create" == "$i" ]; then if [ "$create" == "$i" ]; then
create="$(expr $create + $files)" create="$(expr $create + $files)"
name="$(expr $name + 1)" name="$(expr $name + 1)"
echo ${name}
fi fi
i="$(expr $i + 1)" i="$(expr $i + 1)"