Thursday, October 24, 2019

Convert tab delimited file into comma delimited on Mac


Need to convert tab delimited file to comma delimited on Mac.


Use sed utility, note that standard version doesn't understand \t, so you can either generate tab symbol by pressing Ctrl+V and Tab or install posix sed.

sed 's/ /,/g' <source file> > <target file>

No comments:

Post a Comment