I have some engineering data in a CSV file with the following format:
A1, B1
C2, D2, E2
F3, G3, H3
I need to transform this file into the following CSV format:
B1
E2
H3
In other words, retain rows 2 and above of column 3 only; but field B1 needs to be shifted/aligned to column 3.
In other words, C2, D2, F3 and G3 are discarded.
There are a lot of awk
, sed
, cut
and paste
solutions for shifting, copying and pasting whole columns or rows. But I don't find any solutions for this sort of custom manipulation though.