I have a dataset that goes like this:
Clubs Player Goals
Barcelona A 1
Liverpool B 2
M United C 1
Arsenal D | E 1
...
Problem I am facing is in the rows like 4th row. I am thinking, I have to grep for "|". Followed by creating a new row below:
Desired Result for the 4th row is as below:
Arsenal D 1
Arsenal E 1
I am unable to do a Grep AND add a new line with the data from above line copied below.
Can someone please share how this can be done? Thank you.