swlist -l patch question

when i type command : swlist -l patch
how to do that i can only show gcc this line only
# gcc 4.2.3 gcc
not to show other line
# gcc.gcc-INC
# gcc.gcc-MAN
# gcc.gcc-RUN

how to do?

example
# gcc 4.2.3 gcc
# gcc.gcc-INC
# gcc.gcc-MAN
# gcc.gcc-RUN

I don't know if i grep patch info ,if i must show all line
# gcc 4.2.3 gcc
# gcc.gcc-INC
# gcc.gcc-MAN
# gcc.gcc-RUN

or
# gcc 4.2.3 gcc
this line is enough to stand for that i have installed this patch

How about swlist -l product | grep gcc?

Quite right Annihilannic!

Or

swlist -l patch |grep "gcc "

since all the following lines have gcc followed by a dot (.)