fastest way convert tab-delimited file to csv in linux

前端 未结 11 1309
感情败类
感情败类 2020-12-04 07:56

I have a tab-delimited file that has over 200 million lines. What\'s the fastest way in linux to convert this to a csv file? This file does have multiple lines of header i

11条回答
  •  孤城傲影
    2020-12-04 08:36

    I think it is better not to cat the file because it may create problem in the case of large file. The better way may be

    $ tr ',' '\t' < csvfile.csv > tabdelimitedFile.txt

    The command will get input from csvfile.csv and store the result as tab seperated in tabdelimitedFile.txt

提交回复
热议问题