in reply to pcre grep
Well, perl can do this easily enough:
See documentation for -a in perlrun
Good Day, Dean