I have a file where the first column is the key. The rows can have up to 2800 delimiters. I need to pivot the data from rows to columns. Below is the sample input and required output.
Source File
123,A,B,,,,AC,DF,,,,,,,,,,,,n
567,A,B,,C,D,,,,,,,,, 7
89,C,B
Output
123,A
123,B
123,
123,
.
.
123,AC
123,DF
567,A
567,B
567,C
567,D
567,7
89,C
89,B
Please advise.
python
, but this site is not really supposed to be for programming questions except for "shell scripting". Maybe a bit of a grey area. https://unix.stackexchange.com/questions/7425/is-there-a-robust-command-line-tool-for-processing-csv-files – sourcejedi May 20 '19 at 20:53