in reply to Re^3: Comparing strings to reduce excess results
in thread Comparing strings to reduce excess results

That is a lot information, but I fear that I have not explained my problem correctly. I'll try again :). This is some example output: the last list of directories is just a dump of the hash that has all the changes listed incase it makes it easier to view.

----------------------------------------------------------- PRIOR RUNTIME WAS Thu Sep 17 16:09:05 2009 ----------------------------------------------------------- ###################### THESE DIRECTORIES NO LONGER EXIST ----------------------------------------------------------- C:\Temp/2/2 C:\Temp/4 C:\Temp/4/1 C:\Temp/4/2 C:\Temp/5/1 C:\Temp/5/1/1 C:\Temp/5/1/2 C:\Temp/5/1/2/1 C:\Temp/5/1/2/2 ----------------------------------------------------------- ##################### THESE DIRECTORIES HAVE BEEN CREATED ----------------------------------------------------------- C:\Temp/4-4 C:\Temp/4-4/1 C:\Temp/4-4/1/New C:\Temp/4-4/2 C:\Temp/5/2/1 C:\Temp/5/2/1/1 C:\Temp/5/2/1/2 C:\Temp/5/2/1/2/1 C:\Temp/5/2/1/2/2 C:\Temp/New ----------------------------------------------------------- ############## THESE DIRECTORIES MAY HAVE BEEN RE-NAMED OR MOVED # ----------------------------------------------------------- ----------------------------------------------------------- ############################### HAVE A NICE DAY C:\Temp/2/2 C:\Temp/4 C:\Temp/4-4 C:\Temp/4-4/1 C:\Temp/4-4/1/New C:\Temp/4-4/2 C:\Temp/4/1 C:\Temp/4/2 C:\Temp/5/1 C:\Temp/5/1/1 C:\Temp/5/1/2 C:\Temp/5/1/2/1 C:\Temp/5/1/2/2 C:\Temp/5/2/1 C:\Temp/5/2/1/1 C:\Temp/5/2/1/2 C:\Temp/5/2/1/2/1 C:\Temp/5/2/1/2/2 C:\Temp/New

I'm pretty happy with the output except I just need to reduce the multiple listings for sub-directories when a parent directory is changed, moved, deleted or what ever. Do you think it is possible to just trim the results for multiple parents? Thanks so much for your help, I've learnt a lot.