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
Post a Comment