how to find capital letter names in a file without finding words at start of sentence

Hi,

I want to be able to list all the names in a file which begin with a capital letter, but I don't want it to list words that begin a new sentence. Is there any way round this?

Thanks for your help.

Try...

awk 'BEGIN{RS="( *\\. *|\\n)"}{for(i=2;i<=NF;i++)if($i~/^[A-Z][a-z]+$/)print $i}' file1