script get_lines_w_pattern.sh¶
Retrieve all lines with the matching pattern --pattern within the requested
column (--column).
Usage¶
bash get_lines_w_pattern.sh [[[-f file ] [-c column] [-p pattern] [-o outname]] | [-h]]
Options¶
-h|--help: Display help.-f|--file(string): Path to the input file-o|--out(string): Path to the output file-c|--column(int): Column index to where to look for the pattern-p|--pattern(string): Character pattern to look for
Exit codes¶
0: If successful1: If input is wrong. Either the amount or type