What's the easiest way to compare 2 directories RECURSIVELY?

I wish Midnight Commander had some command for this, but you can easily adapt your own. Put this into your ~/.mc/menu file:
r       Recursively compare directories
        cd %d
        find . -type f -print0 | xargs --null ls -l | cut -c33-1000 | sort -t. +1 > /tmp/00mc_current
        cd %D
        find . -type f -print0 | xargs --null ls -l | cut -c33-1000 | sort -t. +1 > /tmp/00mc_other
        kdiff /tmp/00mc_current /tmp/00mc_other
        rm -f /tmp/00mc_current /tmp/00mc_other
Now, when you press F2 and 'r' the file listings of the directories in the two panels will appear inside kdiff. The script depends heavily on ls output format.

Have a Unix Problem
Do you have a UNIX Question?

Unix Books :-
UNIX Programming, Certification, System Administration, Performance Tuning Reference Books

Return to : - Unix System Administration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.
The site www.gotothings.com is in no way affiliated with or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.