[TUHS] A few comments on porting the Bourne shell

Bakul Shah bakul at iitbombay.org
Thu Jan 5 04:01:16 AEST 2023


On Jan 4, 2023, at 7:19 AM, Ralph Corderoy <ralph at inputplus.co.uk> wrote:
> 
> A lot of the time, POSIX find's ‘-exec foo {} +’ suffices and runs
> foo with as many arguments as will just fit under argv[]s limits,
> like xargs by default and unlike find's one-at-a-time behaviour with
> ‘-exec foo {} \;’.

I often run further transformations before executing
some command on selected files. For example

find . -type f -name '*.[csh]' | grep -l foo | xargs wc -l

Composability rules!


More information about the TUHS mailing list