#!/bin/sh
#
# Look for core dumps with various nameing conventions and
# delete them.

#cd $HOME
echo Cleaning up core files in `pwd` ...
find . -type f \
	\( -name core -o -name 'core.[0-9]0-9]*' -o -name '*.core' \)\
	-exec /bin/ls -lidg {} ';' \
	-exec /bin/rm -f {} ';'

#	Why did we used to do this?
#echo We now start $SHELL ...
#exec $SHELL
