Can transactions be intermingled in the log file, or will all details of a transaction be on adjacent lines, and all adjacent lines belong to the same transaction, or mark the boundary to the next transaction?
Does a transaction always start with the "give" and "take" stuff? Does a transaction always end with the "Waiting for new txns" line?
I guess all the uppercase is an indication that this is the FINANCIAL SECTOR we are dealing with here ...?
Hi,
I am planning to implement a scheduled script that will go against my log files (every hour), search for a set of key words (errors, exceptions, faults etc). The script must be intelligent enough to scan only the new lines added to the log file since it last ran.
I can use grep for... (3 Replies)
Dear perl gurus,
I plan to create a script that will scan through a logfile line by line.
And if ever a certain line meets the below conditions, it will alert me via email.
-->
a) Position 10 to 13 = "ABCD"
b) And also if the amount specified in position 620-640 is less than the amount in... (1 Reply)
Hi Gurus,
I need some help with the "grep" command or whatever command that you think suitable for me. I'm about to write a perl script to extract a report from the system and submit it to the end users. The input for the script will consist of 3 element.
1) Generation ID
2) Month
3) Year... (6 Replies)
I am working on this script, but hit a bump. Looking for a little help figuring out the last part:
open(MY_FILE, $ARGV) or die
$COUNTER = 1;
$LINE = <FILE>;
while ($LINE, <FILE>) {
# Adds leading zeros for numbers 1 digit long
if ($COUNTER<10){
print "000";
}
# Adds... (2 Replies)
i have a file as below
sample.pl
parameter1
argument1
argument2
parameter2
I want out as below
argument1
argument2
that is , i want to print all the lines between parameter1 & parameter 2.
i tried with the following
if($mystring =~ m/parameter1(.*?)parameter2/) (2 Replies)
Mysql log has something like below:
I need a bash shell script that will do the following:
1) The script will scan the mysql.log file constantly in real time (something like tail -F mysql.log)
2) If it encounters 5 consecutive identical lines then it would invoke some commands (say... (4 Replies)
Hello all,
I have some .html files on my hard drive and trying to figure out (if it's possible) how to scan the files in the directory for <a> anchor tags to find linked files. I know how to bring the files in with Perl, but as text. Wondering if there's a way to probe the file for... (2 Replies)
Dear Perl users,
Could somebody help me how to fix my code so I can get my desired output.
Here is the data:
Pattern Gabriel
halo1
halo2
end
Pattern Andreas
halo1
halo2
endI want to grep multiple lines between the pattern /Pattern Gabriel / and /end/.
Then I will store the output into... (6 Replies)
Discussion started by: askari
6 Replies
LEARN ABOUT DEBIAN
matcherrc2perlfilter
MATCHERRC2PERLFILTER.PL(1) User Contributed Perl Documentation MATCHERRC2PERLFILTER.PL(1)NAME
matcherrc2perlfilter -- Conversion of matcherrc rules to perl
DESCRIPTION
This script converts matcherrc filtering rules into perl_filter rules for usage with the claws-mail-perl-filter plugin of the Claws Mail
mailer.
USAGE
matcherrc2perlfilter
No arguments required. Conversion is done for current user only.
FILES
$HOME/.claws-mail/matcherrc
Input file where standard filtering rules lie.
$HOME/.claws-mail/perl_filter
Output file written by this script. Converted rules are appended if the file already exists, so be careful when running the script more
than once.
BUGS
This conversion script doesn't produce nice Perl code and is just intended to get you started. If you choose to use the Perl plugin,
consider rewriting your rules.
SEE ALSO claws-mail-perl-filter(1), claws-mail(1)AUTHOR
This manual page was written by Ricardo Mones <mones@debian.org>, for the Debian GNU/Linux system (but may be used by others). The
matcherrc2perlfilter was written by Holger Berndt <berndth@gmx.de>.
perl v5.14.2 2012-11-17 MATCHERRC2PERLFILTER.PL(1)