Jj Del Carpio

Jj's web stream

Compare files in two directories

This is how you do it:

$ diff < (cd /path/one/ && find .) <(cd /path/two/ && find .)

The trick is using Sub shells and fake their output as a file. Then diff will just think you're comparing two files ;).

You have to cd to each folder in order to avoid showing the relative path in the output.

Jj Avatar of Jj

Reply or react to this post via Webmentions