% SELECT-TABLE(1) Version 3.2.1 | Scripts Documentation % Georg Voell - georg.voell@standby.cloud % (c)2024 Standby.cloud NAME ==== **select-table** - (BASH Script) Reads a tab separated file and pretty prints it and ask user to select a value. SYNOPSIS ======== | **select-table** \[_options_] \[_keys_] DESCRIPTION =========== Reads a tab separated file and pretty prints it and ask user to select a value. Options ------- -h, \--help          : Displays helptext. -v, \--version          : Displays the version of the script. -i, \--import _string_          : Read from a file (_string_ = filename) - if not specified, read from stdin. -e, \--export _string_          : Write result to file (_string_ = filename) - mandatory to set. -g, \--green _string_          : If _string_ is the same as column, display it green. -y, \--yellow _string_          : If _string_ is the same as column, display it yellow. -r, \--red _string_          : If _string_ is the same as column, display it red. -d, \--darkgray _string_         : If _string_ is the same as column, display it gray. -b, \--bold _string_          : If _string_ is the same as column, display it bold. -p, \--page _number_          : Use pagination. Diplay only _number_ of lines. Keys ------- Optional - Select the keys you want to display. Use a colon (or tab) separated string for keys. EXAMPLES ======== printf "cmd vers os jq 1.6 linux rclone 1.51.0 linux " | **select-table** \--export result.tsv : sel cmd vers os : --- ------ ------ ----- : 001 jq 1.6 linux : 002 rclone 1.51.0 linux : Please select a number between 1 and 2 or 'q' to quit: EXIT CODES ========== 01: Unknown or wrong parameter. 02: Input is invalid. 03: No value selected. 04: Error while writing to result file. 99: User interrupt. SEE ALSO ======== **print-header**(1), **install-scripts**(1)