But, if there are some records which are present only in two or three files and not in all the four or multiple files, the code generates the same output and leaves a blank space at records that doesn't contain any value. Please check my example data above.
Thanks in advance.
@Mods: Please excuse me for not including the code tags. Could someone tell me how to include code tags?
Sorry friend. When I work with things, I encounter certain things, so kind of wondering how to do it. Thanks for the update.
If I have more than 4 columns in each file and still the first three columns needs to be matched and the remaining columns needs to be printed, how do I do it?
1.txt
2.txt
3.txt
4.txt
Output.txt
Please note that my files are unsorted and not all files have common values. If file one has 100 records, the other one might have only 50 records but some recors will be common.