Get hold of the GNU version of grep at Bull's freeware site, it does the trick.
Note, it installs to /usr/local/bin instead of /usr/bin, so remember to give the full path, or create yourself an alias in your .profile. IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration