grep w/o group separator
James Mcphee
jmcphe at gmail.com
Thu Oct 24 20:15:49 MST 2019
or --no-group-separator if you don't mind it all being collapsed, i guess
On Thu, Oct 24, 2019 at 8:13 PM James Mcphee <jmcphe at gmail.com> wrote:
> --group-separator="" ?
>
> On Thu, Oct 24, 2019 at 7:55 PM der.hans <PLUGd at lufthans.com> 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 at lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
>
>
> --
> James McPhee
> jmcphe at gmail.com
>
--
James McPhee
jmcphe at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20191024/d9436cd2/attachment.html>
More information about the PLUG-discuss
mailing list