-
Notifications
You must be signed in to change notification settings - Fork 327
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
xsv table and double quotes in text fields #67
Comments
No. But this actually seems sensible to do. |
table and flatten commands are human readable formatters. table: echo -en '"ID","TEXT"\n1,"Test ""22"""'|xsv table
ID TEXT
1 "Test ""22""" flatten: echo -en '"ID","TEXT"\n1,"Test ""22"""'|xsv flatten
ID 1
TEXT Test "22" |
The basic idea is to do something like: xsv table <filename|less -SN -#3 and then you can use less functionality (search, scroll, etc) |
Right. I get it. The reason why it doesn't work today is because |
Similarly for $ printf 'user\tutterance\njoe\tSay "hi"\n'
user utterance
joe Say "hi"
$ printf 'user\tutterance\njoe\tSay "hi"\n'|xsv select -d $'\t' utterance
utterance
"Say ""hi"""
$ printf 'user\tutterance\njoe\tSay "hi"\n'|xsv select -d $'\t' utterance|xsv fmt -t $'\t'
utterance
"Say ""hi"""
# Or even:
$ printf 'Say "hi"\n'|xsv fmt -d $'\t' -t $'\t'
"Say ""hi""" Since tab-separated files don't tend to have double quotes like CSV's, it'd be nice to be able to strip them and simply get back
but since
|
Oh, wait, this UNDOCUMENTED HACK seems to work for some reason:
and it's not in the output:
|
@unhammer Sorry, but that's completely unrelated to this issue. This issue is about |
Is there any way to show double quotes as a single quote symbol
Test:
Result:
Wanted:
The text was updated successfully, but these errors were encountered: