grep help with pkginfo

im looking for a way to eliminate the packages from SUN when i do a pkginfo. thought this would work, but no luck.

 
pkginfo | grep [^SUNW]

what am i doing wrong?
Thanks

You are filtering lines containing a single letter S or U or N or W.

What you need is

pkginfo | grep -v " SUNW"

or - more precise

pkginfo | nawk '$2 !~ /^SUNW.*/ { print }'

because the package name is not at the beginning of each line but in the second column.

use grep -v option