Thanks for your reply.
I just tried with the script which you give me and it did work with some changes. I modified the script like below
find -name core.* -size +10485760c > ./big.txt
#if [[ -s ./big.txt ]] ; then
#big.txt > /usr/bin/mailx -s 'file too big '
abc@xyz.com
this works but I want to see file size too like this..
-rw------- 1 root root 254517248 Aug 4 21:36 core.2909 and this line i wanna send as a mail.
when I tried with this...
/bin/find /path/tofile -name filename.whatever -size +10485760c > ./big.dat It says couldn't find the /bin/find.
Thanks for your help.