4 ms·
I've found cmd <(another_cmd) to be particularly useful in the past for pushing generated data into something that doesn't accept - as an alias for STDIN.
by shabble 14y ago
I've found
cmd <(another_cmd)
to be particularly useful in the past for pushing generated data into something that doesn't accept - as an alias for STDIN. I'm not sure if it's a different way of expressing one of the listed items though; iirc it creates a temporary fifo
- daragh 14y agoThat FIFO temporary file is the file descriptor of the subprocess' stdout. You're accessing it through a pipe. It's most useful when you want to diff the result of multiple commands, e.g.: diffing the contents of two directories: $ diff <(find /first/path | sort) <(find /second/path | sort)