#!/bin/sh
find . -type f -name "*jpg.[0-9]*" -exec rm -f \{\} \;
find . -type f -name "*cgi.[0-9]*" -exec rm -f \{\} \;
find . -type f -name "index.html*" -exec rm -f \{\} \;
find . -type f -name "*.img.[0-9]*" -delete
find data -type f -name "*_err*"   -exec rm -f \{\} \;

## alternativ Paket "symlinks" installieren und entsprechenden Befehl nutzen
DLINKS=`find -L . -type l 2>&1 | tee | cat`
if [ "$DLINKS" != "" ] ; then
   echo "The following are dangling symlinks:"
   echo $DLINKS
   read -p "Please consider fixing these!!!!" xyz
fi

