in reply to Generic compare script.

I have been tasked with writing a compare script to hilight any inconsitencies between files in production and development environments.

I'd just use a source control system like Subversion, SVK or even, if I was forced, CVS. Check in both directories and do a diff.