grep w/o group separator
der.hans
PLUGd at LuftHans.com
Thu Oct 24 19:55:35 MST 2019
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
More information about the PLUG-discuss
mailing list