From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28334 invoked from network); 18 Nov 2021 01:02:01 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 18 Nov 2021 01:02:01 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 693739C852; Thu, 18 Nov 2021 11:01:58 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id A79F09C2E5; Thu, 18 Nov 2021 11:01:39 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LnbcnLAX"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 0E8B29C2E5; Thu, 18 Nov 2021 10:56:13 +1000 (AEST) Received: from mail-ua1-f41.google.com (mail-ua1-f41.google.com [209.85.222.41]) by minnie.tuhs.org (Postfix) with ESMTPS id 39B1B9C29F for ; Thu, 18 Nov 2021 10:56:12 +1000 (AEST) Received: by mail-ua1-f41.google.com with SMTP id y5so9942238ual.7 for ; Wed, 17 Nov 2021 16:56:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IgfN95eUrh0RCpS4+FZOD4tomhMxZlaDI9bXakvKdKM=; b=LnbcnLAX2fL8mgQ3bWl5u+bXM+p9v7Q9P/yHOZYLz/E6zHIniYsDmoCFC/8r8TkryT iD46Ld8f9Q7lbAlSSt8jed4EtoV9PtH/so84QdFMc8lKrrBA4GKG5vN1dcAIZOUMWgD0 Is45UrwD+ocXnrdnyCHy2TIJViqqYTaC65bYo2Y01VS+Smnij3W4L5w+RDhVuaPmBJqB 06qMAphx68USD+l/3FL/CAVacrBB3k5jT57wnsAD6fe+P1fgVm0CRRlm5QzrrIFGKytA y68Q4nD+VcOPXSfuTJRah8Rp2jrJmlIj9ahHey3dIK14KvTAjrKvq2oy5auWKChUwhD+ LxHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IgfN95eUrh0RCpS4+FZOD4tomhMxZlaDI9bXakvKdKM=; b=xLoBq4PMru6nz0/UcZKTLn4HDu5hDfCM1z5ZtlU6Yg3bCEyZ3eSuOPxx5zih5Q+CAh T80BnO6xKcjC/XUrlvqaKvbIE5sEWDXBECT1/bfIuIAohiFvzYu7RHGKkwJl99Dw+5sb HNSsRAVKvRAtnG/2BUTdsXXnZQ/Dg2GiSuUT839Pip53Qj4eCheTqJj7FtZSEj3gZV6w 51lc84dnxmZHAOt8pSdEQmJttKDl1a6BLPXQosGP8gcCdNs8k//IFruiq41ROjHiWhcT 6mWyiviTnqDir91uJ3sXTyr3s5kEOI9juD3n2p6kTuyQgM/lzYwE1Wms68X3GgjtVN1R +Brg== X-Gm-Message-State: AOAM530p2dp/VkWPyh5DEvgGH7RQA6dSc42+bIMKJZWttYuo21+aGOnl 4Srd9ELabLHgNQBYAIPHadVH27hGL9EDNfrN4499Ud2D9OA= X-Google-Smtp-Source: ABdhPJzO5KxWsxQLXTU8a7HmW09g9lUu7OU98Nny8GsV4+KVlRVpIqqulsmk1eDnIr+ZOlcvBzQQ+sAmA5Zd9kd8S3M= X-Received: by 2002:a67:ec94:: with SMTP id h20mr73636691vsp.59.1637196971353; Wed, 17 Nov 2021 16:56:11 -0800 (PST) MIME-Version: 1.0 References: <202111161754.1AGHsGsN929905@darkstar.fourwinds.com> <50F3E958-F0A4-4895-B1BC-41A2644A074A@oclsc.org> <47CE7A59-B66D-4814-A91A-20A95B15C8FC@iitbombay.org> In-Reply-To: <47CE7A59-B66D-4814-A91A-20A95B15C8FC@iitbombay.org> From: Dan Stromberg Date: Wed, 17 Nov 2021 16:56:00 -0800 Message-ID: To: Bakul Shah Content-Type: multipart/alternative; boundary="000000000000e7a85805d1059fab" Subject: Re: [TUHS] Book Recommendation [ reallly inscrutable languages ] X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: TUHS main list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --000000000000e7a85805d1059fab Content-Type: text/plain; charset="UTF-8" On Wed, Nov 17, 2021 at 2:40 PM Bakul Shah 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 '\' /dev/null | \ > xargs grep -l '\' /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 --000000000000e7a85805d1059fab Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Wed, Nov 17, 2021 at 2:40 PM Bakul Sha= h <bakul@iitbombay.org> wr= ote:
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 yo= u (for EG) :
find . -type f -print0 | xargs -0 egrep --null -il m= ypy | xargs -0 egrep --null -il pylint > /tmp/mypy-and-pylint-hits
=
--000000000000e7a85805d1059fab--