Hi,

Try this:

#!/bin/sh

find / -name core -exec rm {} \;

read find manual to find more option. This is only basic command.

regards,
feroz