I had imagined the simplest way to compare the contents of two similar directories would be something like
diff `ls old` `ls new`
But I see why this doesn't work; diff
is being handed a big long list of files on the command line, rather than two streams like I had hoped. How do I pass the two outputs to diff directly?