Quantcast
Channel: Question and Answer » gawk
Viewing all articles
Browse latest Browse all 13

Help reg to write gawk script [closed]

$
0
0
Need sample gawk to join two records with unique key $2.$1 has different entity eventhough $2 is key thats why there are ther are two different lines for same key I/p FIle not in sorted order 01|12345|AAAA 01|99|AAAA 01|888|AAAA 02|12345|BBBBB|CCCCC|DDDDD 02|99|BBBBB|CCCCC|DDDDD 02|888|BBBBB|CCCCC|DDDDD Output file: O/p file 01|12345|DDDDD 01|99|DDDDD 01|888||DDDDD

Viewing all articles
Browse latest Browse all 13

Trending Articles