![]() By querying for the set difference to retrieve the files that are in one folder but not the other. By querying for the intersection to retrieve the files that are in both folders. This example demonstrates three ways to compare two file listings: By querying for a Boolean value that specifies whether the two file lists are identical. ![]() ![]() (The folders can be located anywhere, of course, but it’s easiest if they’re in the same folder.). Launch Terminal (in Applications -> Utilities), and then use the cd command to change to the directory containing the folders you’d like to compare. The program is called diff, and it’s quite simple to use. ![]() There are other third-party GUI tools as well, but there’s actually a free folder comparison tool built into every Mac-it just requires a quick trip to Terminal to put it to use. Have you ever wanted a quick way to compare two directories (folders), in order to see which files may differ between the two? Back in 2006, we discussed FileMerge (part of Apple’s Xcode developer tools), which can do just that. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |