Query: qsgrep
OS: debian
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
QSGREP(1) qsgrep man page QSGREP(1)NAMEqsgrep - Print 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.OPTIONS-e <pattern> Specifes the search pattern. -o <string> Defines the output string where $0-$9 are substituted by the submatches of the regular expression. <path> 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): qsgrep -e 'mod_qos(031).*, c=([0-9.]*)' -o 'ip=$1' error_logSEE ALSOqsexec(1), qsfilter2(1), qsgeo(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1)AUTHORPascal Buchbinder, http://opensource.adnovum.ch/mod_qos/ mod_qos utilities 10.8 June 2012 QSGREP(1)
Related Man Pages |
---|
egrep(1) - opensolaris |
qslog(1) - debian |
qspng(1) - debian |
z88dk-copt(1) - debian |
switch(3) - redhat |
Similar Topics in the Unix Linux Community |
---|
how to replace certain patterns in a file thru unix!! |
How to get value between patterns |
Best way to search for patterns in huge text files |
Grep AND |
sed search alternately for patterns |