I have a folder of 24 different files that all have the same tab-separated format:
This is an example:
zinc-n with-iodide-n 8.0430 X
zinc-n with-amount-of-supplement-n 12.7774 X
zinc-n with-value-of-horizon-n 14.5585 X
zirconium-n as-valence-n 11.3255 X
zirconium-n for-form-of-norm-n 15.4607 X
I want to join the files in every possible combination of 2.
For instance, I want to join File 1 and File 2, File 1 and File 3, File 1 and File 4... and so on until I have an output of 552 files joining EACH file with EACH other file considering all the UNIQUE combinations
I know this can be done for instance in the Terminal with cat.
i.e.
cat File1 File2 > File1File2
cat File1 File3 > File1File3
... and so on.
But, to do this for each unique combination would be an extremely laborious process.
Is there a possible to automatize this process to join all of the unique combination using a command line in Terminal with grep for instance? or perhaps another suggestion for a more optimized solution than CAT.