Skip to content
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

Negative indexing #1

Open
Sojamann opened this issue Jun 24, 2022 · 0 comments
Open

Negative indexing #1

Sojamann opened this issue Jun 24, 2022 · 0 comments

Comments

@Sojamann
Copy link
Owner

Support negative indexing like python lists.
Now
$ echo "A B C D" | gut -cw -f -1 A
Desired
$ echo "A B C D" | gut -cw -f -1 D

New range specification (remember that it is 1-index based)
$ echo "A B C D" | gut -cw -f 2:-2 B C

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant