I have three text files and I want to combine them in one text file on my Linux machine.
Input files:
1_val.txt
0x0000000000060b7c02555b80
0x0000000000060b7c026c6580
0x0000000000060b7c0285ff80
2_val.txt
0x0000000000060b7c0257a180
0x0000000000060b7c026eab80
0x0000000000060b7c02884580
3_val.txt
2.2734
2.2734
2.2734
Expected output:
values.txt
0x0000000000060b7c02555b80 0x0000000000060b7c0257a180 2.2734
0x0000000000060b7c026c6580 0x0000000000060b7c026eab80 2.2734
0x0000000000060b7c0285ff80 0x0000000000060b7c02884580 2.2734
Output generated: The last three values in the first and second column are missing.
0x0000000000060b7c02555 0x0000000000060b7c0257a 2.2734
0x0000000000060b7c026c6 0x0000000000060b7c026ea 2.2734
0x0000000000060b7c0285f 0x0000000000060b7c02884 2.2734
The code I used to get this done,
pr -m -t 1_val.txt 2_val.txt 3_val.txt > values.txt