jqnatividad / qsv

CSVs sliced, diced & analyzed.
https://qsv.dathere.com
The Unlicense
2.45k stars 70 forks source link

Add `--in-place` to `qsv edit` #2109

Open rzmk opened 3 weeks ago

rzmk commented 3 weeks ago

Is your feature request related to a problem? Please describe. The qsv edit command outputs the entire edited data by default but a user may want to edit a file in-place (therefore also not needing to output the entire file).

Describe the solution you'd like A way to edit a cell for a file in-place, such as adding a --in-place flag.

rzmk commented 6 days ago

Not sure how this should be implemented. Currently a manual workaround would be using -o to another file, delete the original, then rename the edited file to the original file's name.

ondohotola commented 6 days ago

I usually rename the old file to .bak then do the deed writing to the new file, just in case I mess up.

Message ID: ***@***.***>