mirror of
https://github.com/theryangeary/choose
synced 2025-02-17 01:38:24 +00:00
separate examples to make explanations easier to digest visually
This commit is contained in:
parent
2f590f61c9
commit
d226c750ef
1 changed files with 5 additions and 0 deletions
|
@ -50,13 +50,18 @@ ARGS:
|
|||
|
||||
```bash
|
||||
choose 5 # print the 5th item from a line (zero indexed)
|
||||
|
||||
choose -f ':' 0 3 5 # print the 0th, 3rd, and 5th item from a line, where
|
||||
# items are separated by ':' instead of whitespace
|
||||
|
||||
choose 2:5 # print everything from the 2nd to 5th item on the line,
|
||||
# exclusive of the 5th
|
||||
|
||||
choose -n 2:5 # print everything from the 2nd to 5th item on the line,
|
||||
# inclusive of the 5th
|
||||
|
||||
choose :3 # print the beginning of the line to the 3rd item,
|
||||
# exclusive
|
||||
|
||||
choose 3: # print the third item to the end of the line
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue