-
Notifications
You must be signed in to change notification settings - Fork 603
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
csvsed (or csvgrep with replace) #1057
Comments
Hi @geekscrapy, to keep the maintenance burden reasonable, we aren't adding new tools to csvkit. That said, people can certainly create their own Python packages to offer new CSV tools! |
Many thanks, I'll probably be looking into this in the next few months so may have a pull request coming 👍 |
I just remembered: have a look at https://github.com/johnkerl/miller, which I think has the feature you're looking for ( |
Just a note that csvsql can be used to query and modify CSV files, see e.g. #1243 |
csvmedkit has a csvsed command, which might not be too much effort to add as an option to csvgrep: https://github.com/dannguyen/csvmedkit/blob/main/csvmedkit/utils/csvsed.py Can also look at https://pypi.org/project/csvsed/ That said, see comments in #268. Also, qsv already has a |
An idea, have a sed like module within csvkit. This would allow grepping based on columns, and also (more importantly) replacing values in certain columns based on regex.
Must haves:
Nice to haves:
I may have a use-case for this in the near future but logging it here incase someone thinks its needed and wants to take a crack before me!
The text was updated successfully, but these errors were encountered: