shell - Remove a character from second occurence -


how can remove , after first column of every line

$ cat tmp.txt name, charles, james, criss  age, 21, 25, 23 

there may n number of columns in file.

and need output like

$ cat tmp.txt name, charles james criss age, 21 25 23 

the , should not deleted first column.

you can tell sed globally 2nd match:

$ sed 's/,//g2' file name, charles james criss  age, 21 25 23 

Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -