IN a file I need to check for 3 patterns if all the 3 patterns are in the file. I need to send out an email. All this needs to be done in korn shell script. Please advise. (1 Reply)
In a directory, there are two different file extensions (*.txt and *.xyz) having similar names of numerical strings (*). The (*.txt) contains 5000 multiple files and the (*.xyz) also contains 5000 multiple files. Each of the files has around 4000 rows and 8 columns, with several unique string... (5 Replies)
I have a file name in $f. If $f has "-" at the beginning, or "=", or does not have extension ".ry" or ".xt" or ".dat" then cerr would not be empty.
Tried the following but having some problems.
set cerr = `echo $f | awk '/^-|=|!.ry|!.xt|!.dat/'` (4 Replies)
Hi Guys,
I have file like below, I want to print all lines between test1231233 to its 10 occurrence(till line 41)
test1231233
qwe
qwe
qweq123
test1231233
qwe
qwe
qweq23
test1231233
qwe
qwe
qweq123
test1231233
qwe
qwe
qweq123131 (3 Replies)
Hello all
I have a file my DNS server where there are duplicate paragrapsh like below. How can I remove the duplicate paragraph so that only one paragraph remains.
BEGIN;
replace into domains (name,type) values ('225.168.192.in-addr.arpa','MASTER');
replace into records (domain_id,... (2 Replies)
Hi Experts
I need to match 2 patterns consecutively and display 25 lines after that.
1st one - Error
2nd one - End string ( comes along with the pattern one)
3rd one - error
Logic
grep "ERROR OCCURRED :" trace.log | awk -v "ES=:" -v "SS=java.lang.NullPointerException" '{
if($NF ~... (8 Replies)
Hi,
I have requirement to find the matching patterns of two files in Unix. One file is the log file and the other is the error list file. If any pattern in the log file matches the list of errors in the error list file, then I would need to find the counts of the match.
For example,
... (5 Replies)
Delete patterns matching
OS version: RHEL 7.3
Shell : Bash
I have a file like below (pattern.txt). I need to delete all lines starting with the following words (words separated by comma below) and ) character.
LOGGING, NOCOMPRESS, TABLESPACE , PCTFREE, INITRANS, MAXTRANS, STORAGE,... (3 Replies)
i have a file where the hostnames and variables are in same line in below format, am able extract some part variables while otherlike subscriptions and handler is missing.
can you please correct me if grep is able to perform this ?
cat /tmp/test
localhost subscriptions='' handler="genie"... (14 Replies)
Discussion started by: rakeshkumar
14 Replies
LEARN ABOUT DEBIAN
catalyst::plugin::log::dispatch
Catalyst::Plugin::Log::Dispatch(3pm) User Contributed Perl Documentation Catalyst::Plugin::Log::Dispatch(3pm)NAME
Catalyst::Plugin::Log::Dispatch - Log module of Catalyst that uses Log::Dispatch
VERSION
This document describes Catalyst::Plugin::Log::Dispatch version 2.15
SYNOPSIS
package MyApp;
use Catalyst qw/Log::Dispatch/;
configuration in source code
MyApp->config->{ Log::Dispatch } = [
{
class => 'File',
name => 'file',
min_level => 'debug',
filename => MyApp->path_to('debug.log'),
format => '[%p] %m %n',
}];
in myapp.yml
Log::Dispatch:
- class: File
name: file
min_level: debug
filename: __path_to(debug.log)__
mode: append
format: '[%p] %m %n'
If you use Catalyst::Plugin::ConfigLoader, please load this module after Catalyst::Plugin::ConfigLoader.
DESCRIPTION
Catalyst::Plugin::Log::Dispatch is a plugin to use Log::Dispatch from Catalyst.
CONFIGURATION
It is same as the configuration of Log::Dispatch excluding "class" and "format".
class
The class name to Log::Dispatch::* object. Please specify the name just after "Log::Dispatch::" of the class name.
format
It is the same as the format option of Log::Dispatch::Config.
DEPENDENCIES
Catalyst, Log::Dispatch, Log::Dispatch::Config
AUTHOR
Shota Takayama "<shot[at]bindstorm.jp>"
LICENCE AND COPYRIGHT
Copyright (c) 2006, Shota Takayama "<shot[at]bindstorm.jp>". All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
perl v5.14.2 2012-04-15 Catalyst::Plugin::Log::Dispatch(3pm)