I have two very large files (and neither of them would fit in memory). Each file has one string (which doesn\'t have spaces in
I'd do it as follows (for any number of files):
You haven't said what platform you're working on, so I assume you're working on Windows, but in the unlikely event that you're on a Unix platform, standard tools will do it for you.
sort file1 | uniq > output
sort file2 | uniq >> output
sort file3 | uniq >> output
...
sort output | uniq -d