#row-column #table #output #combination #terminal #idx #col-format

app table_idx

Get any row,column combination from a terminal output

2 stable releases

1.0.1 Sep 26, 2020

#3 in #idx

MIT license

13KB
289 lines

Index

Get any row,column combination from a terminal output

Usage

printf $table | idx "$row_format;$col_format"

$row/col_format can be:

  • a serie of numbers sperated by a comma ex: 1,2
  • a range sperated by ~, ex: 1~ ex: 1~2 ex: ~3
  • catch all with _

Example

printf $table | idx "1,3;2"

printf $table | idx "~3;2~"

printf $table | idx "~3;_"

No runtime deps