Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TSV delimiter #19

Closed
darked89 opened this issue Nov 14, 2022 · 2 comments
Closed

TSV delimiter #19

darked89 opened this issue Nov 14, 2022 · 2 comments

Comments

@darked89
Copy link

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
Copy link
Owner

YS-L commented Nov 15, 2022

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
Copy link
Owner

YS-L commented Jun 29, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants