I have a main file as follows
aaa 3/2 = 1.5
aba 55+6 = 61
aca 67+8 = 75
hjk 3+3 = 67
ghd 66+30 = 96
ghj 99-3 = 96
ffg 67+3 = 70
I have 4 sub files named sub1, sub2, sub3, sub4
content of sub1
aaa 23+5 = 28
hjk 45+6 = 51
ghd 40-20 = 20
content of sub2
aca 67+6 = 71
ffg 56+7 = 63
content of sub3
aca 67+6 = 71
ghd 56+7 = 63
content of sub4
aaa 3/2 = 1.5
aba 55+6 = 61
aca 67+6 = 71
hjk 3+3 = 67
ghd 66+30 = 96
ghj 99-3 = 96
ffg 56+7 = 63
desired output
main sub1 sub2 sub3 sub4
aaa 3/2 = 1.5 23+5 = 28 NIL NIL 3/2 = 1.5
aba 55+6 = 61 NIL NIL NIL 55+6 = 61
aca 67+8 = 75 NIL 67+6 = 71 67+6 = 71 67+6 = 71
hjk 3+3 = 67 45+6 = 51 NIL NIL 3+3 = 67
ghd 66+30 = 96 40-20 = 20 NIL 56+7 = 63 66+30 = 96
ghj 99-3 = 96 NIL NIL NIL 99-3 = 96
ffg 67+3 = 70 NIL 56+7 = 63 NIL 56+7 = 63
I want to combine the data from sub files in to main file. What is the easy way to do this?
Thanks!!