<div dir="ltr">--group-separator="" ?<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 24, 2019 at 7:55 PM der.hans <<a href="mailto:PLUGd@lufthans.com">PLUGd@lufthans.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">moin moin,<br>
<br>
Is there an option for grep to use -(B|A) without the group separator?<br>
<br>
"Places a line containing a group separator (--) between contiguous groups<br>
of matches."<br>
<br>
----<br>
$ grep -B 1 -E 'name:|2019:' _data/sponsors.yml | tail<br>
<br>
- name: Dragonchain<br>
--<br>
sponsorships:<br>
2019: bronze<br>
<br>
- name: Ubuntu-PNW<br>
--<br>
sponsorships:<br>
2019: thanks<br>
----<br>
<br>
I can grep them out with another grep, but I'd rather just not have them.<br>
<br>
ciao,<br>
<br>
der.hans<br>
-- <br>
# <a href="https://www.LuftHans.com" rel="noreferrer" target="_blank">https://www.LuftHans.com</a> <a href="https://www.PhxLinux.org" rel="noreferrer" target="_blank">https://www.PhxLinux.org</a><br>
# Ohio Linuxfest is Nov 1-2 in Columbus - <a href="https://OhioLinux.org/" rel="noreferrer" target="_blank">https://OhioLinux.org/</a><br>
# SeaGL is Nov 15-16 in Seattle - <a href="https://SeaGL.org/" rel="noreferrer" target="_blank">https://SeaGL.org/</a><br>
# "The reasons for my decision to quit were myriad, but central to the<br>
# decision was the realization that there are two kinds of companies:<br>
# Good ones ask you to think for them.<br>
# The others tell you to think like them." -- Benjy Feen<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">James McPhee<br><a href="mailto:jmcphe@gmail.com" target="_blank">jmcphe@gmail.com</a></div>