17 lines
142 B
Bash
17 lines
142 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -x
|
||
|
|
||
|
while (( "$#" ))
|
||
|
do
|
||
|
|
||
|
FILENAME=${1%%-*}
|
||
|
|
||
|
mv ${1} ${FILENAME}
|
||
|
|
||
|
shift
|
||
|
cd -
|
||
|
done
|
||
|
|
||
|
#./cutname.sh <Ordner>/*-*
|