YS-L / csvlens

Command line csv viewer
MIT License
2.59k stars 43 forks source link

TSV delimiter #19

Closed darked89 closed 10 months ago

darked89 commented 1 year ago

Hello,

would it be possible to handle TSV files as well?

I did:

csvlens -d "\t"  data_timepoints.tsv

# error:
Delimiter should be exactly one character, got \t

Thank you

DK

YS-L commented 1 year ago

Yes, you can specify the delimiter using the -d flag. Have you tried csvlens -d \t data_timepoints.tsv (without the double quotes) instead?

YS-L commented 1 year ago

Correction: the correct command to use is

csvlens -d $'\t' data_timepoints.tsv

in order to specify the literal tab character properly in the command line. Alternatively, the main branch now supports an option -d auto to auto-detect the delimiter.