I have a file which looks like thisa   0   gene1   56  0   6S32M12S    *b   256 gene2   56  0   6S32M12S    *c   256 gene3   55  0   6S27M17S    *d   16  gene4   110 9   19S25M6S    *e   272 gene5   141 9   23S21M6S    *f   272 gene6   139 9   24S20M6S    *g   0   gene7   38  1   6S44M   *h   256 gene8   38  1   6S44M   *I   256 gene9   38  1   6S44M   *j   256 gene10  40  1   8S42M   *The 6th column is the string I want to filter on. Basically if the string contains a match equal to or more than 16S(so let's say 16S,17S,18S,19S and more) than report those lines. How can I do that? The out put for the above example would be:c   256 gene3   55  0   6S27M17S    *d   16  gene4   110 9   19S25M6S    *e   272 gene5   141 9   23S21M6S    *f   272 gene6   139 9   24S20M6S    *I just showed you a little snippet from a big file.
Filtering a file on a string
shell;text processing;awk