File 1
Code:
Name Number1
Peter 123
John 3
ALONGNAME 5432
File 2
Code:
Name Number2
Peter 987
John 72
ALONGNAME 1
I am trying to combine the 2 reports into a well formatted report. But the irregular letter count is my biggest problem.
I join and awk to put tabs in between but the format is off.
e.g.
Combined report
Code:
Name Number1 Number2
Peter 123 987
John 3 72
ALONGNAME 5432 1
I wish it to be like this
Combined report
Code:
Name Number1 Number2
Peter 123 987
John 3 72
ALONGNAME 5432 1
Is there anyway to overcome this?
I can handle how file 1 and 2 is formatted, if that helps in my quest.