
I am trying to compare the root filesystem listings of two Solaris 10 x86 systems with the following code snippet but not sure whether it is the correct approach since it is took forever to complete and did not pickup any differences onto C:\\FolderMissingFiles.txt:
Below is a small sample of these files and I know C:\\ JupiterSolarisFilesystemListing.txt (181786 lines) is a subset of C:\\VenusSolarisFilesystemListing.txt (183333 lines):
I am not sure whether the string comparison (if (venus_line.compareTo(jupiter_line) != 0) is working. Hope I won’t have to compare individual subfolder names using venus_line.split(“/”) starting from root. E.g. (/var/sadm/install/admin/default - /var, sadm, pkg, SUNWocfd….).
This code snippet uses suggestion from https://coderanch.com/t/277350/Streams/java/Comparing-two-huge-files.
I am running Java 7 on Windows 7 (64bit) with 4.0GB RAM.
Your suggestion would be much appreciated.
Thanks,
Jack