Tweet by @DasSurma
Still discovering new shell tricks.
TIL: Substitutions.
`cmd (cat file)` invokes `cmd` with the first parameter being a named pipe (e.g. `/dev/fd/22`) which contains the contents of `file`.
Example use-case: You wanna diff two files, but they are binary so need disassembling https://t.co/k7LIzKOVrb
— Surma (@DasSurma)
Sep 7, 2024