I want to replace all multiple tabs with a single tab with sed. I am trying to use
sed 's:\t+:\t:' .\text.CSV > newtext.csv
but this doesn't seem to work
If I open in sublime and replace by regex all \t+
to \t
it works properly
what is wrong with my sed?
Also, if I replace tabs with a comma with
sed 's:\t\t*:,:g' text.CSV > newtext.csv
I get this kind of line
264262360,20030826,200308,2003,2003.6466,BUS,EMPLOYER,,,,,,BUS,,, ,,,,,,,,,,0,051,051,05,1,3.4,12,2,12,5.24866163479182,1