fork(5) download
  1. #!/bin/bash
  2. sed -E 's/"/\\"/g;s/\t+$//;s/^/"/;s/\t/","/g;s/$/"/'
Success #stdin #stdout 0s 19632KB
stdin
name	location	1,2,3,4,5
a	b	c	1,2,3		5		7		
He says:	"Hello !"	"Hello",	I replied
stdout
"name","location","1,2,3,4,5"
"a","b","c","1,2,3","","5","","7"
"He says:","\"Hello !\"","\"Hello\",","I replied"