-
Notifications
You must be signed in to change notification settings - Fork 21
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
How to change to delim from "\x01" to others? #54
Comments
I believe we can put up a fix for this. Would you be able to share a file that has this |
aotimme
added a commit
that referenced
this issue
Dec 15, 2023
This change makes two changes to how delimiters are specified: 1. It allows other backslash-escaped delimiters, such as those that represent hexadecimal or unicode characters (like `\x01` per #54). Previously we had a special case to handle the tab-delimiter `\t`. 2. It will now exit with an error if the provided delimiter does not evaluate to exactly 1 rune. Previously it would silently accept it, which is not great since it could lead to some strange behavior for users. Fixes #54
I believe this is fixed in the latest release: https://github.com/aotimme/gocsv/releases/tag/v1.0.4. If not, please re-open! |
This was referenced Apr 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello there, I have a csv file with "\x01" as delimiter and I want to use gocsv to change it to others like "," or "\t".
I have tried
head input | gocsv delim -i "\x01" -o "\t" > output
but nothing changed.What should I do?
The text was updated successfully, but these errors were encountered: