-
Notifications
You must be signed in to change notification settings - Fork 605
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
Question: parsing text column-wise #1243
Labels
Comments
No - that tool was requested here, but csvkit is not adding new tools: #1057 That said you can use e.g. printf 'col1, col2, col3\nstr1, str2-remove, str3' | csvsql --query "SELECT col1, REPLACE(\" col2\", '-remove', '') AS \" col2\", \" col3\" FROM stdin" The weird quoting is because your CSV for some reason has spaces at the start of each cell. |
Thanks a lot for your quick reply and for the amazing toolset! |
Btw, the unmaintained csvmedkit package has a "csvsed" command. I haven't tried it: https://pypi.org/project/csvmedkit/ |
I've reopened #1057 for consideration. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
please allow me to ask a question although I do not think this is possible with the current set of csv utilities. Is it possible to parse some string column wise? For instance, this csv
csvparse -c 2 --regexp 's/str2-remove/str2/'
Thanks
The text was updated successfully, but these errors were encountered: