I have a CSV file containing the following registers:
Name,Phone,Country
John,N/A,USA
Max,N/A,USA
Name,Color,Size
John,Blue,M
Max,Red,S
How can I read only the registers from Name,Color,Size and onwards, using bash?
Additionally, how can I limit the output until it reaches either the EOF or a blank line? So this:
Name,Phone,Country
John,N/A,USA
Max,N/A,USA
Name,Color,Size
John,Blue,M
Max,Red,S
Dummy,Dummy,Dummy
Foo,Foo,Bar
Wouldn't output this:
John,Blue,M
Max,Red,S
Dummy,Dummy,Dummy
Foo,Foo,Bar
But rather only this:
John,Blue,M
Max,Red,S
I have already tried grep and sed but without luck, I also tried tail but the number of lines is unknown until the file is read.