7 lines
146 B
Bash
7 lines
146 B
Bash
|
#!/bin/sh
|
||
|
find $1 -type f | while read FILE;
|
||
|
do
|
||
|
newfile="$(echo ${FILE} |sed -E 's/-[^\.]{11}\././')" ;
|
||
|
mv "${FILE}" "${newfile}" ;
|
||
|
done;
|