2019-01-02 15:04:16 +01:00
|
|
|
#!/bin/bash
|
|
|
|
suf=$1
|
|
|
|
if [ $# -gt 0 ]
|
|
|
|
then
|
|
|
|
for f in *.$suf; do
|
2019-01-08 13:08:27 +01:00
|
|
|
bn=`basename "$f" .$suf | sed 's/IMG_//'`
|
2019-01-02 15:04:16 +01:00
|
|
|
new=$bn.$suf
|
|
|
|
echo "neuer Dateiname:"
|
|
|
|
echo $new
|
|
|
|
mv "$f" $new
|
|
|
|
done
|
|
|
|
else
|
|
|
|
echo "Kein Suffix gegeben!!"
|
|
|
|
echo "Verwendung: strip-space.sh SUFFIX"
|
|
|
|
echo "Beende ...."
|
2019-01-04 10:41:14 +01:00
|
|
|
exit 1
|
2019-01-02 15:04:16 +01:00
|
|
|
fi
|