-
Notifications
You must be signed in to change notification settings - Fork 607
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
csvcut/csvgrep: Allow for numeric column names and column names containing hyphen (--column-names
, --column-indexes
)
#468
Comments
@onyxfish would you accept a PR that changed the behavior so that if the number was quoted it would interpret it as a string. |
Can you give an example of what the command would look like? |
I like to have a solution for this. (I've seen plenty of spreadsheets with year columns.) However, I don't want to rely on quote characters on the command line, as they have a particular meaning that may vary from platform to platform. |
Expected:
Actual:
|
What if we added explicit |
@jpmckinney , what is the status of the proposed
With |
I've increased the issue's priority, so that I notice it next time I do a round of maintenance – but I can't make any promises about how soon I'll implement it. I accept pull requests, though! |
--column-names
, --column-indexes
)
--column-names
, --column-indexes
)--column-names
, --column-indexes
)
--column-names
, --column-indexes
)--column-names
, --column-indexes
)
I have data with a column names like
pre-k,k,01,02,03,04,05
where the numbers refer to grades. I can't select the 3rd grade column using csvcut
csvcut -c "k,03" returns the kindergarten row and the 2nd grade row (the fourth column)
The text was updated successfully, but these errors were encountered: