Faster way to create tab deliminated text files?

前端 未结 6 946
忘掉有多难
忘掉有多难 2021-02-09 18:01

Many of my programs output huge volumes of data for me to review on Excel. The best way to view all these files is to use a tab deliminated text format. Currently i use this chu

6条回答
  •  有刺的猬
    2021-02-09 18:11

    does it have to be written in C? if not, there are many tools already written in C, eg (g)awk (can be used in unix/windows) that does the job of file parsing really well, also on big files.

    awk '{$1=$1}1' OFS="\t" file
    

提交回复
热议问题