shell-scripte-code/cutname.sh

17 lines
142 B
Bash
Raw Normal View History

2018-12-14 00:43:11 +01:00
#!/bin/bash
set -x
while (( "$#" ))
do
FILENAME=${1%%-*}
mv ${1} ${FILENAME}
shift
cd -
done
#./cutname.sh <Ordner>/*-*