On Mi, 23 iun 21, 09:22:24, to...@tuxteam.de wrote: > On Wed, Jun 23, 2021 at 06:51:39AM +0300, Andrei POPESCU wrote: > > [...] > > > comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc > > /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u) > > > Command substitution without '$'? I must be missing something and would > > appreciate a pointer. > > As David pointed out (as a pointer), the <(...) is a bashism for "pretend > this is > a file name whose content is provided by the enclosed command's output". > > Perhaps more readable in the symmetrical variant > > diff -u <(ls dir1) <(ls dir2) > > Very handy.
It certainly appears to be very handy, though I generally try to steer away from bashims in scripts, and for interactive use my primary shell is now fish. Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser
signature.asc
Description: PGP signature