I'm trying to write a script with a file as an argument that greps the text file to find any word that starts with a capital and has 8 letters following it. I'm bad with syntax so I'll show you my code, I'm sure it's an easy fix.

```
grep -o '[A-Z][^ ]*' $1

```

I'm not sure how to specify that:

a) it starts with a capital letter, and 

b)that it's a 9 letter word. 

Cheers

EDIT:

As an edit I'd like to add my new code:

```
while read p
do
echo $p | grep -Eo '^[A-Z][[:alpha:]]{8}'
done < $1

```

I still can't get it to work, any help on my new code?