I have about 70 files to merge into one, each file has about 7 lines or so of data. The final format has to be:
DATA FROM FILE1 DATA FROM FILE2 DATA FROM FILE3
DATA FROM FILE1 DATA FROM FILE2 DATA FROM FILE3
DATA FROM FILE1 DATA FROM FILE2 DATA FROM FILE3
DATA FROM FILE1 DATA FROM FILE2 DATA FROM FILE3
DATA FROM FILE1 DATA FROM FILE2 DATA FROM FILE3
DATA FROM FILE1 DATA FROM FILE2 DATA FROM FILE3
DATA FROM FILE1 DATA FROM FILE2 DATA FROM FILE3
DATA FROM FILE4 DATA FROM FILE5 DATA FROM FILE6
DATA FROM FILE4 DATA FROM FILE5 DATA FROM FILE6
DATA FROM FILE4 DATA FROM FILE5 DATA FROM FILE6
DATA FROM FILE4 DATA FROM FILE5 DATA FROM FILE6
... So on and so forth until all 70 plus files have been processed. I am able to merge three files togther on the command line using the pr command (and various flags). My question is how to get all the files togehter in the format mentioned above? Any hints would be greatly appreciated.
DATA FROM FILE1 DATA FROM FILE2 DATA FROM FILE3
DATA FROM FILE1 DATA FROM FILE2 DATA FROM FILE3
DATA FROM FILE1 DATA FROM FILE2 DATA FROM FILE3
DATA FROM FILE1 DATA FROM FILE2 DATA FROM FILE3
DATA FROM FILE1 DATA FROM FILE2 DATA FROM FILE3
DATA FROM FILE1 DATA FROM FILE2 DATA FROM FILE3
DATA FROM FILE1 DATA FROM FILE2 DATA FROM FILE3
DATA FROM FILE4 DATA FROM FILE5 DATA FROM FILE6
DATA FROM FILE4 DATA FROM FILE5 DATA FROM FILE6
DATA FROM FILE4 DATA FROM FILE5 DATA FROM FILE6
DATA FROM FILE4 DATA FROM FILE5 DATA FROM FILE6
... So on and so forth until all 70 plus files have been processed. I am able to merge three files togther on the command line using the pr command (and various flags). My question is how to get all the files togehter in the format mentioned above? Any hints would be greatly appreciated.