madasafish
Technical User
I have tried getline and am going round in circles.
The simplest way I can put it is as follows:
Given the following files:
file1:
1,user1
2,user2
3,user3
4,user4
5,user5
file2:
1,user1
3,user3
5,user5
7,user7
9,user9
Display the following output with totals
Common File1 File2
1 2 7
3 4 9
5
=== === ===
3 2 2
=== === ===
It's not easy! (well for me anyway!)
The icing on the cake would be a flag to change output to..
Common File1 File2
user1 user2 user7
user3 user4 user9
user5
=== === ===
3 2 2
=== === ===
Note: "user" could be any name like bert fred martin etc
Any help, will go into my awk tool arsenal
madasafish2
Madasfish2
The simplest way I can put it is as follows:
Given the following files:
file1:
1,user1
2,user2
3,user3
4,user4
5,user5
file2:
1,user1
3,user3
5,user5
7,user7
9,user9
Display the following output with totals
Common File1 File2
1 2 7
3 4 9
5
=== === ===
3 2 2
=== === ===
It's not easy! (well for me anyway!)
The icing on the cake would be a flag to change output to..
Common File1 File2
user1 user2 user7
user3 user4 user9
user5
=== === ===
3 2 2
=== === ===
Note: "user" could be any name like bert fred martin etc
Any help, will go into my awk tool arsenal
madasafish2
Madasfish2