Post History
Suppose I have a command that takes filenames as arguments, like: diff foo.txt bar.txt What if instead of actual files, I want to use the results of a command in each? I can use temporary files: ...
Question
shell-scripting
#1: Initial revision
When a command takes filenames as argument, how can I avoid creating temporary files?
Suppose I have a command that takes filenames as arguments, like: `diff foo.txt bar.txt` What if instead of actual files, I want to use the results of a command in each? I can use temporary files: ``` ls /home/alice > /tmp/alice.txt ls /home/bob > /tmp/bob.txt diff alice.txt bob.txt ``` But what if I don't want to create the files?