# Created on savesnippets.com ยท https://savesnippets.com/OwS2FpLSn3qHMv # Diff the output of two commands without temp files diff <(ls /etc/nginx) <(ls /etc/nginx.backup) # Sort + uniq on two file lists, find files in A but not B comm -23 <(sort fileA.txt) <(sort fileB.txt) # Feed a command's output into a tool that wants a file join -1 1 -2 1 <(sort orders.csv) <(sort customers.csv) # Capture stderr to a logger AND keep stdout flowing some_cmd 2> >(logger -t myapp) # Tee output to multiple consumers via process subs echo "build complete" | tee >(notify-send "Build") >(logger -t deploy)