shell-scripte-code/cutname.sh
2018-12-14 00:52:48 +01:00

13 lines
107 B
Bash
Executable file

#!/bin/bash
set -x
while (( "$#" ))
do
mv ${1} ${1%%-*}
shift
done
#./cutname.sh <Ordner>/*-*