for parsing purpose I need to stretch the content of the first column n times according to the number of characters of another column, within command line.
Note: Col2 contains mixed types: <>,.[A-Za-z]
I should turn something like this:
cat myFile.tsv
Col1 Col2
Text1 XXXX
Text2 XX
Text3 XXX
Into this:
cat myNewFile.tsv
Col1
Text1
Text1
Text1
Text1
Text2
Text2
Text3
Text3
Text3
Do you have any efficient suggestions? Thank you :D !!