My dataset looks like this:
lastname|name|hash
A|B|C
D|E|
G|H|I J
I need the data in this format (preferably with awk) in bash.
{C}% B A
{I}% H G
{J}% H G
In words: Only if there is a value for the third column (hash) I want to output.
There can be 1-n values in the third column (hash) and for each value the output should be like:
{hash}% name lastname