Mastodon Feed: Post

Mastodon Feed

Reblogged by kornel ("Kornel"):

surma ("Surma") wrote:

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

Attachments: