scripts/fixcam.sh

17 lines
326 B
Bash
Raw Normal View History

2018-11-10 14:01:20 +01:00
#!/bin/bash
remove=" (1)"
doneanything=false
for file in fixcam/*; do
to="${file/$remove}"
if [ "$to" == "$file" ]; then
echo "skip file $file"
else
echo "rename file $file to $to"
mv "$file" "$to"
doneanything=true
fi
done
if [ $doneanything = false ]; then
echo "noting done"
fi