Re: [PATCH 1/5] t1700-split-index: drop unnecessary 'grep'
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Sep 8, 2018, 13:50 UTC
- Message-ID
- <CACsJy8DKOvFj-V81HJQ+0Nx9QkeZ9MqrTPWJ4kDvJmbt+E4o_g@mail.gmail.com>
- In-Reply-To
- <20180906024810.8074-2-szeder.dev@gmail.com>
On Thu, Sep 6, 2018 at 4:48 AM SZEDER Gábor <szeder.dev@gmail.com> wrote:
Show 8 quoted lines
> > The test 'disable split index' in 't1700-split-index.sh' runs the > following pipeline: > > cmd | grep <pattern> | sed s/// > > Drop that 'grep' from the pipeline, and let 'sed' take over its > duties.
Years of using sed and I never realized -n could simplify this pattern. Thank you.
-- Duy