qsgrep (1) - Linux Man Pages
qsgrep: prints matching patterns within a file.
qsgrep - prints matching patterns within a file.
SYNOPSISqsgrep -e <pattern> -o <sub string> [<path>]
DESCRIPTIONqsgrep is a simple tool to search patterns within files. It uses regular expressions to find patterns and prints the submatches within a pre-defined format string.
- -e <pattern>
- Specifes the search pattern.
- -o <string>
- Defines the output string where $0-$9 are substituted by the submatches of the regular expression.
Defines the input file to process. qsgrep reads from from standard input if this parameter is omitted.
EXAMPLEShows the IP addresses of clients causing mod_qos(031) messages):
Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/