This is an example file of what I have
1321|4
512|2
1056|2
314|16
69|1
239|2
0|0
0|0
0|0
0|0
534|0
But I need the file to be in a format like this:
1321|4|512|2|1056|2|314|16|69|1|239|2|0|0|0|0|0|0|0|0|534|0
I tried my luck with awk but I'm not getting an usable result, never used it before and can't get examples and manuals into working code. How can I achieve the needed format? Any Help would be awesome.