# On OSX you cannot use \t for tab. # Instead cntrl+v then insert a literal tab after s/ sed 's/ /,/g' input_file > output_file