Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

qstail(1) [debian man page]

QSTAIL(1)							  qstail man page							 QSTAIL(1)

NAME
qstail - Utility prints the end of a log file starting at the specified pattern. SYNOPSIS
qstail -i <path> -p <pattern> DESCRIPTION
qstail shows the end of a log file beginning with the line containing the specified pattern. This may be used to show all lines which has been written after a certain event (e.g., server restart) or time stamp. OPTIONS
-i <path> Input file to read the data from. -p <pattern> Search pattern (literal string). SEE ALSO
qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1) AUTHOR
Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/ mod_qos utilities 10.8 June 2012 QSTAIL(1)

Check Out this Related Man Page

QSGREP(1)							  qsgrep man page							 QSGREP(1)

NAME
qsgrep - Print matching patterns within a file. SYNOPSIS
qsgrep -e <pattern> -o <sub string> [<path>] DESCRIPTION
qsgrep 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. EXAMPLE
Shows the IP addresses of clients causing mod_qos(031) messages): qsgrep -e 'mod_qos(031).*, c=([0-9.]*)' -o 'ip=$1' error_log SEE ALSO
qsexec(1), qsfilter2(1), qsgeo(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1) AUTHOR
Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/ mod_qos utilities 10.8 June 2012 QSGREP(1)
Man Page

14 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Search for a pattern in part of the line

Hi guys, I need to search for a particular pattern within the first 5 chars of the line. If the pattern is found then output the whole line. Unfortunately grep only searches the whole line For example if i am searching for aaaaa in these lines aaaaabbbbbccccc bbbbbcccccaaaaa grep... (6 Replies)
Discussion started by: pineapples
6 Replies

2. UNIX for Advanced & Expert Users

fast way to retreive a list of lines

hi there, i have to read lines from the file, where the line is just above the pattern am looking for typically this looks like this <time-stamp>|----- <pattern am searching >...... <time-stamp>|..... <some garbage > .... the log file is big wc -l ~/log/ompe.log.20081203... (8 Replies)
Discussion started by: kiranreddy1215
8 Replies

3. Shell Programming and Scripting

Added new line before a specific pattern problem asking

Input file: Sample1 Type pattern 842 3150 Sample1 Type range 842 3150 Sample1 Type pattern 842 1127 Sample1 Type option 842 1127 Sample1 Type length 1483 1603 Sample1 Type pattern 1483 1603 Sample1 Type length 1698 1747 Sample1 Type option 1698 1747 Sample1 Type length 1868 1935 Sample1... (13 Replies)
Discussion started by: patrick87
13 Replies

4. UNIX for Advanced & Expert Users

complicated date stamp pattern

Hi, I have a log file which contains lines like below: 2010-07-19 07:13:19,021 ERROR system ...(text) 2010-07-19 07:22:03,427 ERROR system ...(text) class com... (text) 2010-07-19 07:23:19,026 ERROR system ...(text) class com... (text) each line is a separate line... I am given the a... (11 Replies)
Discussion started by: a27wang
11 Replies

5. Shell Programming and Scripting

Replacing pattern

Hi, I have a file which contains the below data. I want to search for a pattern server="http://bushby.mis.amat.com:12440" and remove it from the file. Please let me know how can i do this. <Object name="reverse-proxy-/endeavour/"> ObjectType fn="http-client-config" timeout="1800"... (6 Replies)
Discussion started by: Krrishv
6 Replies

6. Shell Programming and Scripting

find the line starting with a pattern and save a part in variable

Hi i have a file which has mutiple line in it. inside that i have a pattern similar to this /abc/def/hij i want to fine the pattern starting with "/" and get the first word in between the the symbols "/" i.e. "abc" in this case into a variable. thanks in advance (13 Replies)
Discussion started by: kichu
13 Replies

7. Shell Programming and Scripting

Regarding multiline record searching with specific pattern

Dear Experts, I need to extract specific records from one file which has multiline records. Input file pattern is: ============ aaaaaaaa bbbbbbbb asdf 1234 cccccccc dddddddd ============ aaaaaaaa bbbbbbbb qwer 2345 cccccccc dddddddd (7 Replies)
Discussion started by: dhiraj4mann
7 Replies

8. UNIX for Dummies Questions & Answers

extracting lates pattern match from multiple matches in log

Hi, I have a large, multiline log file. I have used pcregrep to extract all entries in that log that match a particular pattern - where that pattern spans multiple lines. However, because the log file is large, and these entries occur every few minutes, I still output a very large amount... (6 Replies)
Discussion started by: dbrb2
6 Replies

9. UNIX for Dummies Questions & Answers

Search pattern in vi

can any one help how to stop search pattern end of line. It means i am searching one pattern from line 1 and search when it reaches the end of line in a file it should be stop. (6 Replies)
Discussion started by: prakumar
6 Replies

10. AIX

Grepping before and after lines for required string

Hi All, I am new to AIX unix . i need to grep for a pattern and if pattern is found then i need 3 before the pattern line found and 3 lines after the pattern found. (11 Replies)
Discussion started by: coolvibh
11 Replies

11. Red Hat

Search pattern

Anyone please solve this: How to search for pattern having 3 consecutive and same word characters (like aaa, bbb) in a file? (8 Replies)
Discussion started by: ravisingh
8 Replies

12. UNIX for Dummies Questions & Answers

Grep -v lines starting with pattern 1 and not matching pattern 2

Hi all! Thanks for taking the time to view this! I want to grep out all lines of a file that starts with pattern 1 but also does not match with the second pattern. Example: Drink a soda Eat a banana Eat multiple bananas Drink an apple juice Eat an apple Eat multiple apples I... (8 Replies)
Discussion started by: demmel
8 Replies

13. Shell Programming and Scripting

How to use awk with multiple pattern?

Hi All, need your help , i want grouping complicated log below became count data message error per 5 minutes. log some like below : /data/logs/ag/tdr25001.log:2019-07-20... (8 Replies)
Discussion started by: fajar_3t3
8 Replies

14. UNIX for Beginners Questions & Answers

Get an output of lines in pattern 1st line then 10th line then 11th line then 20th line and so on.

Input file: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 (6 Replies)
Discussion started by: Sagar Singh
6 Replies