2 ms·
I use this all the time. It's at its most useful when you want to use a process as a source or sink, and avoid using a temporary file as input or output when a
by barrkel 12y ago
I use this all the time. It's at its most useful when you want to use a process as a source or sink, and avoid using a temporary file as input or output when a tool that doesn't operate on standard input or output. Often, these tools need to work with multiple files that have different semantic intent.
For example, `grep -f <pattern-file>` - grep works on standard input, but if you also want to provide patterns via process output, you need to use temporary files, fifos, or process substitution.
Here's an example:
find | fgrep -f <(cut -f 2 tab-delimited-text.txt)