From c41d2aa0324d731230c0d6892e9166cf87cca4a1 Mon Sep 17 00:00:00 2001 From: simono41 Date: Fri, 14 Dec 2018 00:43:11 +0100 Subject: [PATCH] cutname-minetest --- cutname.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 cutname.sh diff --git a/cutname.sh b/cutname.sh new file mode 100755 index 0000000..405e11b --- /dev/null +++ b/cutname.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +set -x + +while (( "$#" )) +do + + FILENAME=${1%%-*} + + mv ${1} ${FILENAME} + + shift + cd - +done + +#./cutname.sh /*-*