I have a file with data in the below format
Item1|keys,books,helmet,handle, Item2|Bike, Item3 Item4|Tyre,brakes,headlight,clamps,rollergrip, Item5|Nails,hammers,
I wanted the above data to be converted to the below format
Item1|keys Item1|books Item1|helmet Item1|handle Item2|Bike Item3 Item4|Tyre Item4|brakes Item4|headlight Item4|clamps Item4|rollergrip Item5|Nails Item5|hammers
I was trying to achieve this by using cut command though that was working fine I wanted to know can this be achieved using awk command. Since if the input file size gets bigger then it should be cumbersome.