cutname-minetest
This commit is contained in:
parent
e1780a6a4b
commit
c41d2aa032
1 changed files with 16 additions and 0 deletions
16
cutname.sh
Executable file
16
cutname.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
while (( "$#" ))
|
||||||
|
do
|
||||||
|
|
||||||
|
FILENAME=${1%%-*}
|
||||||
|
|
||||||
|
mv ${1} ${FILENAME}
|
||||||
|
|
||||||
|
shift
|
||||||
|
cd -
|
||||||
|
done
|
||||||
|
|
||||||
|
#./cutname.sh <Ordner>/*-*
|
Loading…
Reference in a new issue