On 11/8/06, James Gray <james at grayonline.id.au> wrote: > Not sure how BSD/Solaris/AIX/etc grep does things, but the "-c" > option has been around for ages in Gnu-land and gnu-grep is the > standard on Mac OSX along with all the Linuxes. Standard Solaris has it: -c Prints only a count of the lines that contain the pat- tern. -- /peter