title: Compare files in two directories
link: http://jj.isgeek.net/2011/03/compare-files-in-two-directories/
author: Jj
description: 
post_id: 648
date: 2011/03/13 14:39:40
created_gmt: 2011/03/13 19:39:40
comment_status: open
slug: 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.