Calm down mate, and give that animosity a miss.
Look at the type of question. That's something that
just doesn't happen in a real-life environment. The
fact that your pal is trying to get you to know Linux
better still makes it a "homework" question if you
look at it closely.
Do a "man egrep" and read the bit about
"REGULAR EXPRESSIONS"
(a quick way to get there is
Code:
man egrep
/REGULAR EXPRESSIONS<CR>
In particular, look at the bits that deal
with { } constructs.
Cheers,
Tink