Am 24. Oct, 2019 schwätzte James Mcphee so: moin moin, > or --no-group-separator if you don't mind it all being collapsed, i guess Ding! Ding! Ding! We have a winner! Not in the man page, of course :(. ciao, der.hans > On Thu, Oct 24, 2019 at 8:13 PM James Mcphee wrote: > >> --group-separator="" ? >> >> On Thu, Oct 24, 2019 at 7:55 PM der.hans wrote: >> >>> moin moin, >>> >>> Is there an option for grep to use -(B|A) without the group separator? >>> >>> "Places a line containing a group separator (--) between contiguous groups >>> of matches." >>> >>> ---- >>> $ grep -B 1 -E 'name:|2019:' _data/sponsors.yml | tail >>> >>> - name: Dragonchain >>> -- >>> sponsorships: >>> 2019: bronze >>> >>> - name: Ubuntu-PNW >>> -- >>> sponsorships: >>> 2019: thanks >>> ---- >>> >>> I can grep them out with another grep, but I'd rather just not have them. >>> >>> ciao, >>> >>> der.hans >>> -- >>> # https://www.LuftHans.com https://www.PhxLinux.org >>> # Ohio Linuxfest is Nov 1-2 in Columbus - https://OhioLinux.org/ >>> # SeaGL is Nov 15-16 in Seattle - https://SeaGL.org/ >>> # "The reasons for my decision to quit were myriad, but central to the >>> # decision was the realization that there are two kinds of companies: >>> # Good ones ask you to think for them. >>> # The others tell you to think like them." -- Benjy Feen >>> --------------------------------------------------- >>> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org >>> To subscribe, unsubscribe, or to change your mail settings: >>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss >> >> >> >> -- >> James McPhee >> jmcphe@gmail.com >> > > > -- # https://www.LuftHans.com https://www.PhxLinux.org # Ohio Linuxfest is Nov 1-2 in Columbus - https://OhioLinux.org/ # SeaGL is Nov 15-16 in Seattle - https://SeaGL.org/ # If you don't think for yourself, others will think for you -- # to their advantage. -- Harold Gordon