From b1e072678fa4973f79c5477e103cfe417d379515 Mon Sep 17 00:00:00 2001 From: simono41 Date: Fri, 14 Dec 2018 00:52:48 +0100 Subject: [PATCH] optimierungen --- cutname.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cutname.sh b/cutname.sh index 405e11b..97f31f3 100755 --- a/cutname.sh +++ b/cutname.sh @@ -5,12 +5,9 @@ set -x while (( "$#" )) do - FILENAME=${1%%-*} - - mv ${1} ${FILENAME} + mv ${1} ${1%%-*} shift - cd - done #./cutname.sh /*-*