pandoc-csv2table
pandoc-csv2table copied to clipboard
Support .tsv files with tab-separation
In my field of research, bioinformatics, TSV (tab-separated variables) is often used instead of CSV. The only difference is that the values are tab rather than comma separated. For example, GitHub supports both .csv and .tsv files when providing formatted table views.
It would be a nice addition if this filter could interpret .tsv filename extensions. I don't know anything about haskell, but it looks like the SSV package may be helpful for implementing this.
If .tsv files are not humongous, you can convert them to .csv before running this filter. Run the following command in Linux shell or Windows 10 WSL to convert a .tsv file to .csv:
cat input.tsv | tr "\t" "," > output.csv