1QSGREP(1)                       qsgrep man page                      QSGREP(1)
2
3
4

NAME

6       qsgrep - prints matching patterns within a file.
7

SYNOPSIS

9       qsgrep -e <pattern> -o <sub string> [<path>]
10

DESCRIPTION

12       qsgrep  is a simple tool to search patterns within files. It uses regu‐
13       lar expressions to find patterns and prints  the  submatches  within  a
14       pre-defined format string.
15

OPTIONS

17       -e <pattern>
18              Specifes the search pattern.
19
20       -o <string>
21              Defines  the  output  string  where $0-$9 are substituted by the
22              submatches of the regular expression.
23
24       <path> Defines the input file to process. qsgrep reads from from  stan‐
25              dard input if this parameter is omitted.
26
27

EXAMPLE

29       Shows the IP addresses of clients causing mod_qos(031) messages):
30
31         qsgrep -e 'mod_qos\(031\).*, c=([a-zA-Z0-9:.]*)' -o 'ip=$1' error_log
32
33

SEE ALSO

35       qsdt(1), qsexec(1), qsfilter2(1), qsgeo(1), qshead(1), qslog(1), qslog‐
36       ger(1),  qspng(1),  qsre(1),  qsrespeed(1),   qsrotate(1),   qssign(1),
37       qstail(1)
38

AUTHOR

40       Pascal Buchbinder, http://mod-qos.sourceforge.net/
41
42
43
44mod_qos utilities 11.64         September 2019                       QSGREP(1)
Impressum