Here's a nasty solution.... There must be much better ways
count the number of files that match *.core... ignore 'No match'...
(to be correct you would also have to ignore other find error msgs like Permission denied.....)
if(`find $HOME/*.core |& grep -v 'No match' | wc -l`) then
echo found some
else
echo didn\'t find any
endif