From 7854b7eaaea62cf16d4467c84ded556c29f8a996 Mon Sep 17 00:00:00 2001 From: simono41 Date: Wed, 15 Nov 2017 14:16:45 +0100 Subject: [PATCH] fix --- convert_onefile_mp3_copy_cut.sh | 6 +++++- ...file_ogg_copy_cute.sh => convert_onefile_ogg_copy_cut.sh | 0 convert_onefile_ogg_cute.sh => convert_onefile_ogg_cut.sh | 0 3 files changed, 5 insertions(+), 1 deletion(-) rename convert_onefile_ogg_copy_cute.sh => convert_onefile_ogg_copy_cut.sh (100%) rename convert_onefile_ogg_cute.sh => convert_onefile_ogg_cut.sh (100%) diff --git a/convert_onefile_mp3_copy_cut.sh b/convert_onefile_mp3_copy_cut.sh index 24491ce..9bb1580 100755 --- a/convert_onefile_mp3_copy_cut.sh +++ b/convert_onefile_mp3_copy_cut.sh @@ -2,11 +2,14 @@ set -ex +#$(( (23-2)*2/3 )) +#cuts=$(( $1-1 )) cuts="$1" shift 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)" create=0 i=0 @@ -18,6 +21,7 @@ do if [ "$create" == "$i" ]; then create="$(expr $create + $files)" name="$(expr $name + 1)" + echo ${name} fi i="$(expr $i + 1)" diff --git a/convert_onefile_ogg_copy_cute.sh b/convert_onefile_ogg_copy_cut.sh similarity index 100% rename from convert_onefile_ogg_copy_cute.sh rename to convert_onefile_ogg_copy_cut.sh diff --git a/convert_onefile_ogg_cute.sh b/convert_onefile_ogg_cut.sh similarity index 100% rename from convert_onefile_ogg_cute.sh rename to convert_onefile_ogg_cut.sh