bug#28304: Feature Request - Quit on Non Match

2017-08-31 Thread Adam Danischewski
I've been writing parsers and it would be really nice if grep could do the following: *grep --quit-nm 1 -Pno "^[ \t\f]*#.*$" <(sed -n '2,$p' gen_ent.bsh)* If you: *grep -m 1 -Pno "^[ \t\f]*#.*$" <(sed -n '2,$p' gen_ent.bsh)* Only the first match of the header block gets printed, yet it would be

bug#28304: Feature Request - Quit on Non Match

2017-08-31 Thread Adam Danischewski
exit}' gen_ent.bsh Thanks anyway, +AMD On Thu, Aug 31, 2017 at 10:53 AM, wrote: > Adam Danischewski wrote: > > > I've been writing parsers and it would be really nice if grep could do > the > > following: > > > > *grep --quit-nm 1 -Pno "^[ \t\