diff --git a/convert_onefile_mp3_copy_cut.sh b/convert_onefile_mp3_copy_cut.sh index c629132..24491ce 100755 --- a/convert_onefile_mp3_copy_cut.sh +++ b/convert_onefile_mp3_copy_cut.sh @@ -2,12 +2,8 @@ set -ex -if [ -z "${cuts}" ]] ;then - cuts=2 -else - cuts="$1" - shift -fi +cuts="$1" +shift name=0 # wenn 100 daten und 3 cuts = 33 files @@ -25,6 +21,7 @@ do fi i="$(expr $i + 1)" + echo "${1%/*}" cd "${1%/*}" # gehe ins Verzeichnis FILENAME=${1##*/} # Dateiname ist alles ab dem letzten '/' diff --git a/convert_onefile_ogg_copy_cute.sh b/convert_onefile_ogg_copy_cute.sh index 28997b0..3e82954 100755 --- a/convert_onefile_ogg_copy_cute.sh +++ b/convert_onefile_ogg_copy_cute.sh @@ -2,12 +2,8 @@ set -ex -if [ -z "${cuts}" ]] ;then - cuts=2 -else - cuts="$1" - shift -fi +cuts="$1" +shift name=0 # wenn 100 daten und 3 cuts = 33 files diff --git a/convert_onefile_ogg_cute.sh b/convert_onefile_ogg_cute.sh index 8bcd63c..5a706c3 100755 --- a/convert_onefile_ogg_cute.sh +++ b/convert_onefile_ogg_cute.sh @@ -2,12 +2,8 @@ set -ex -if [ -z "${cuts}" ]] ;then - cuts=2 -else - cuts="$1" - shift -fi +cuts="$1" +shift name=0 # wenn 100 daten und 3 cuts = 33 files