News for hackers. Stuff that matters.
Re:Q: A faster re-implementaiton of jq written in Reason Nat... by Spivak on Monday September 14, 2020 @10:24AM (#24470501)
Which is sorta-kinda the same thing as

  jq .field <(aws s3 cp s3://bucket/file.json.gz - | zcat | head) | sort
which is more annoying to type but works.
Re:Q: A faster re-implementaiton of jq written in Reason Nat... by dullgiulio on Monday September 14, 2020 @12:37PM (#24472149)
Redirection is not a parameter, meaning that would still not work with this Q tool.
Re:Q: A faster re-implementaiton of jq written in Reason Nat... by jraph on Monday September 14, 2020 @01:07PM (#24472515)
This is not a simple redirection. cmd <(subcmd) is a bashism that redirects the output of command subcmd to something that looks like a regular file to command cmd. Command cmd receive a path at the place the <(subcmd) syntax is used. Different from cmd < f, which redirects the contents of file f to cmd's input.

So, this should work :-)

Re:Q: A faster re-implementaiton of jq written in Reason Nat... by jeffbee on Monday September 14, 2020 @01:11PM (#24472558)
Works in other shells, not just bash

  % cat /proc/self/cmdline <(echo $SHELL) | tr '\0' ' '
  cat /proc/self/cmdline /proc/self/fd/11 /bin/zsh
Re:Q: A faster re-implementaiton of jq written in Reason Nat... by jraph on Monday September 14, 2020 @01:14PM (#24472585)
Yep! Zsh supports a lot of bashisms :-)

It won't work in dash though, and you should not use this in a shell that targets POSIX.