On Wed, Nov 17, 2021 at 2:40 PM Bakul Shah <bakul(a)iitbombay.org> wrote:
I just want better builtin support for shell pipelines
as
they are essentially (flat) list processors! As an example
consider something like the following:
find . -name '*.[hc]' -type f | \
xargs grep -l '\<foo\>' /dev/null | \
xargs grep -l '\<bar\>' /dev/null | \
xargs some-command
The GNU tools let you (for EG) :
find . -type f -print0 | xargs -0 egrep --null -il mypy | xargs -0 egrep
--null -il pylint > /tmp/mypy-and-pylint-hits