I'd like to compare the output of one program on two files. It would be something like:
comm -23 <(cat a/somefile) <(cat b/somefile)
Where cat is a stand in for a monster of a command.
Here's what I know. If I do echo {a,b}/somefile then I get
a/somefile b/somefile
which is correct.
I tried to apply this "explosion" to the process substitution: comm -23 <(cat {a,b}/somefile) needless to say I got an error comm: missing operand after ‘/proc/self/fd/16’. Is this possible to do?