Hacker News new | ask | show | jobs
by Klasiaster 2209 days ago
Yes:

  $ echo "1,2,3,4,5" | choose -f , 2 0
  3 1
  $ echo "1,2,3,4,5" | choose -f , 2:0
  3 2 1
Note that the indexing starts with 0, "-d" is "-f", and a range is denoted by ":" instead of "-" which is used for indexing from the end.