I want to search a file for a string and then if the string is found I need the line that the string is on - but also the previous two lines from the file (that the pattern will not be found in)
This is on solaris
Can you help? (2 Replies)
Hi All,
I have two directories as
1) mi/job -> job1.sh, job2.sh, job3.sh
2) mi/sysin -> sysin1, sysin2, sysin3,sysin4
I want to wrrite a script such that it should accept two parameters as directory paths.
$ myscript mi/sysin mi/job.
The script should be able to scan all files... (3 Replies)
Hi
Can some one please help me
How can i search a file which has been created or modified in last five minutes
I have used the command
find . -mmin -5
and it does not work
i get an error -mmin is bad option
Please help
Much regards
Tarun (2 Replies)
I am viewing a file in vi editor and would like to search for a date pattern. In the log, the timestamp is enclosed in parentheses ''. I am using the '/' option in vi to search for the pattern.
log snippet:
000000f4 ServletWrappe I SRVE0242I: : Initialization successful.
000000f4... (3 Replies)
I have file which gets updated every minute/second. Is it possible in shell scripting that I can search for some pattern infinitely in this file and if it finds that pattern, alert the user.
A sample of log file is below. The following file is getting updated every second. I want to alert the... (2 Replies)
I am trying to search a file for a patterns ERR- in a file and return a count for each of the error reported
Input file is a free flowing file without any format
example of output
ERR-00001=5
....
ERR-01010=10
.....
ERR-99999=10 (4 Replies)
Hi,
I have two files file1.txt and file2.txt. Please see the attachments.
In file2.txt (which actually is a diff output between two versions of file1.txt.), I extract the pattern corresponding to 1172c1172. Now ,In file1.txt I have to search for this pattern 1172c1172 and if found, I have to... (9 Replies)
Is there any way I can do scan of log file in Linux, where the log file entries for last 15 minutes can be searched for a particular pattern.
The log file entries are in below format.
2014-01-27T23:08:53.924-0500 LDAP authentication error
2014-01-27T23:08:53.934-0500 LDAP authentication... (4 Replies)
Hi all,
System Ubuntu 16.04.3 LTS
i have the following log
INFO 2019-02-07 15:13:31,099 module.py:700] default: "POST /join/8550614e-3e94-4fa5-9ab2-135eefa69c1b HTTP/1.0" 500 2042
INFO 2019-02-07 15:13:31,569 module.py:700] default: "POST /join/6cb9c452-dcb1-45f3-bcca-e33f5d450105... (15 Replies)
Hello all,
Info:
System RedHat 7.5
I need to create a script that based on the creation time,
if the file is older then 5 minutes then execute some stuff, if not exit.
I thought to get the creation time and minutes like this.
CreationTime=$(stat -c %y /tmp/test.log | awk -F" " '{ print... (3 Replies)
Discussion started by: charli1
3 Replies
LEARN ABOUT DEBIAN
qpid-python-test
qpid-python-test(1) User Commands qpid-python-test(1)NAME
qpid-python-test - run tests of the python QPID library for a broker
SYNOPSIS
qpid-python-test [options] PATTERN ...
DESCRIPTION
Run tests matching the specified PATTERNs.
OPTIONS -h, --help
show this help message and exit
-l, --list
list tests instead of executing them
-b BROKER, --broker=BROKER
run tests against BROKER (default localhost)
-f FILE, --log-file=FILE
log output to FILE
-v LEVEL, --log-level=LEVEL
only display log messages of LEVEL or higher severity: DEBUG, WARN, ERROR (default WARN)
-c CATEGORY, --log-category=CATEGORY
log only categories matching CATEGORY pattern
-m MODULES, --module=MODULES
add module to test search path
-i IGNORE, --ignore=IGNORE
ignore tests matching IGNORE pattern
-I IFILE, --ignore-file=IFILE
ignore tests matching patterns in IFILE
-H, --halt-on-error
halt if an error is encountered
-t, --time
report timing information on test run
-D DEFINE, --define=DEFINE
define test parameters
SEE ALSO
For more information on qpid-python-test please check the QPID wiki at http://qpid.apache.org.
Apache QPID October 2011 qpid-python-test(1)