[TUHS] Book Recommendation [ reallly inscrutable languages ]

Dan Stromberg drsalists at gmail.com
Thu Nov 18 10:56:00 AEST 2021


On Wed, Nov 17, 2021 at 2:40 PM Bakul Shah <bakul at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20211117/06f7575e/attachment.htm>


More information about the TUHS mailing list