diffing 2 directories

diff – one of the most important tools for any programmer. Especially when you work with large code bases. Today I had a need to diff between 2 directories. And both of these have a HUGE number of files and sub-folders in them.

What I needed is a way to just list out the files that were modified between the 2 builds. I poked around for a bit and I found this command,
diff -qr dirA dirB | sort > diffs.txt
What it does is compare the 2 directories and reports just the modified file names. ( “sort” cleans things up) Just what I needed.

Mass renaming files

When sorting out media files for XBMC the program prefers a certain way of naming files. The idea is to makes it easier for the scrubber to go online and search for data. Unfortunately, my media collection is NOT sorted to the required format. This looked like a very laborious task at first, to rename all my files, until I came across this utility,

Rename Master

It makes it a real breeze to arrange my collection! This video from PCmech does a great job of describing the tool,