summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCollin Reilly Clark <crclark96@gmail.com>2019-09-13 22:11:45 -0400
committerRyan Geary <rtgnj42@gmail.com>2019-09-16 18:30:56 -0400
commitd226c750ef1babaff0e332f6c0c2fd9acbc2d9af (patch)
tree288275080da4efb2255406256784c51e71266b32
parent2f590f61c923018d84019c83850ca8e50f83ab07 (diff)
separate examples to make explanations easier to digest visually
-rw-r--r--readme.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/readme.md b/readme.md
index 0b92209..5be3c5a 100644
--- a/readme.md
+++ b/readme.md
@@ -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
```