#!/bin/sh -f

#
#
# Copyright 1995-1997 Sun Microsystems, Inc. All Rights Reserved
#
# "@(#)findcore.sh	3.4 99/11/12 Sun Microsystems"
#

echo "Searching for core files...  "

for dirs in `/usr/sbin/df -F ufs | /bin/cut -f1 -d' '`
do
    /usr/bin/find $dirs -mount -name core -exec /usr/bin/ls -l {} \; -exec file {} \;
done
