% SELECT-TABLE(1) Version 3.1.0 | Scripts Documentation % Georg Voell - georg.voell@standby.cloud % (c)2023 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_] _filename_ _resultname_ 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. -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. -m, \--multiselect          : Not yet implemented. -p, \--page _number_          : Use pagination. Diplay only _number_ of lines. Filename ------- A file with tab separated content. EXAMPLES ======== printf "cmd vers os jq 1.6 linux rclone 1.51.0 linux " > file.tmp : Creates a tab separated value file. select file.tmp result.tmp : 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: File is empty. 03: No value selected. 04: Error while writing to result file. 99: User interrupt. SEE ALSO ======== **print-header**(1), **install-scripts**(1)