-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
csvtk unselect range error #234
Comments
I mentioned this in the past. For me, it works if you change the order of
the range to exclude, e.g.:
echo -e "1,2,3,4,5" | csvtk -H cut -f -3--1
Here you exclude 1,2,3, only you are telling it to exclude 3,2,1 instead.
…On Wed, Jul 12, 2023 at 1:35 PM Mathias Walter ***@***.***> wrote:
The range selector to "discard 1st to 3rd column" does not work as
documented:
echo -e "1,2,3,4,5" | csvtk -H cut -f -1--3
[ERRO] invalid field range: -1--3. start (-1) should be less than end (-3)
It does not matter which numbers are used. It looks like the first dash is
treated as the "minus" of the first number rather than as the unselect
operater.
Both version 0.25 and 0.26 are affected.
—
Reply to this email directly, view it on GitHub
<#234>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABGSN3ME5TB7OM7GQQZUVLXP2KZXANCNFSM6AAAAAA2HNQXTQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
shenwei356
added a commit
that referenced
this issue
Jul 12, 2023
Oh, both ways are supported now.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The range selector to "discard 1st to 3rd column" does not work as documented:
It does not matter which numbers are used. It looks like the first dash is treated as the "minus" of the first number rather than as the unselect operater.
Both version 0.25 and 0.26 are affected.
The text was updated successfully, but these errors were encountered: