Below is a sample data in a file
4 columns with TAB separated with last column as values separated by comma. The 3rd column actually shows number of values in the 4th column.
6338838 ESR 3 173812,10547556,10518181
6338822 ESR 2 7219086,12761162
Expected output :
6338838 ESR 3 173812
6338838 ESR 3 10547556
6338838 ESR 3 10518181
6338822 ESR 2 7219086
6338822 ESR 2 12761162
Tried with AWK , but not able to make it work.