in reply to Re^2: grep commandin thread grep command
perl -lne '$ct += s/hello//g; }{print $ct' /tmp/hh [download]
;-) --shmem