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