Closed vitalyk-multinarity closed 1 year ago
csvkit doesn't have an option to support multiple header lines, and it's unlikely to add this feature, because there is low demand and because it would affect a lot of code.
I suggest using sed to simply change the first cell on the second line, e.g.
csvstack -n COMMIT -g 12345 myfile.csv | sed -r '2s/^[^,]+/COMMIT/'
Depending on your version of sed, you might not need -r
.
I have CSV with 2 headers, like this:
and I'd like to add a new column with commit hash.
works almost fine, but I need to generate file like
and not
Is this possible with csvstack?
Thanks, Vitaly