I want to transform a CSV file using bash by adding new lines into it depending on some conditions described below :
CSV file structure:
name,id_name,url Amy,N1,http://google.com Rob,N2,http://google.com http://other-url.com http://anotherurl.com http://other-again.com Johh,N3,http://google.com http://anotherurl.com Jack,N4,http://google.com http://other-url.com ... I want to transform the CSV file like this :
name,id_name,url Amy,N1,http://google.com Rob,N2,http://google.com Rob,N2,http://other-url.com Rob,N2,http://anotherurl.com Johh,N3,http://google.com Johh,N3,http://anotherurl.com Jack,N4,http://google.com Jack,N4,http://other-url.com ... Thanks