Sponsored Content
Top Forums Shell Programming and Scripting Search patterns in multiple logs parallelly. Post 302884729 by Girish19 on Tuesday 21st of January 2014 01:38:05 PM
Old 01-21-2014
sorry for the mistake

But even after correcting the code there was no o/p


Code:
$ tail log4j.log
2014-01-21 12:31:08,051 [http-wspsa99a0036.wellsfargo.com%2F167.138.101.48-6443-3] INFO  resourcing.DoubleResourceBundle - No resource bundle found for 'StringTable'
2014-01-21 12:31:08,063 [http-wspsa99a0036.wellsfargo.com%2F167.138.101.48-6443-3] INFO  resourcing.DoubleResourceBundle - No resource bundle found for 'StringTable'
2014-01-21 12:31:08,077 [http-wspsa99a0036.wellsfargo.com%2F167.138.101.48-6443-3] INFO  resourcing.DoubleResourceBundle - No resource bundle found for 'StringTable'
2014-01-21 12:31:08,085 [http-wspsa99a0036.wellsfargo.com%2F167.138.101.48-6443-3] INFO  resourcing.DoubleResourceBundle - No resource bundle found for 'StringTable'
2014-01-21 12:31:12,769 [http-wspsa99a0036.wellsfargo.com%2F167.138.101.48-6443-2] INFO  xpath.XPathOptimizer - registerInterceptor com.trax.gateway.util.StatusGranularityOptimizer (1)
2014-01-21 12:31:12,774 [http-wspsa99a0036.wellsfargo.com%2F167.138.101.48-6443-2] INFO  xpath.XPathOptimizer - registerInterceptor com.trax.gateway.util.CreationDateToIDMapper (2)
2014-01-21 12:31:13,053 [http-wspsa99a0036.wellsfargo.com%2F167.138.101.48-6443-6] INFO  gui.NavigationCachingHelper - Creating instance of NavigationCachingHelper for language 'en'
2014-01-21 12:31:13,087 [http-wspsa99a0036.wellsfargo.com%2F167.138.101.48-6443-2] INFO  session.CountFromViewStrategy - Initializing MATERIALIZED VIEW (Synchronous) [GTW_TX ==> TMP_GTW_TX_COUNT_MVE]
2014-01-21 12:31:13,097 [http-wspsa99a0036.wellsfargo.com%2F167.138.101.48-6443-2] INFO  session.CountFromViewStrategy - Initializing MATERIALIZED VIEW (Synchronous) [GTW_WFL_EX ==> TMP_GTW_WFL_EX_COUNT_MVE]
2014-01-21 12:31:25,702 [http-wspsa99a0036.wellsfargo.com%2F167.138.101.48-6443-4] WARN  impl.CacheManagerImpl - Cache: test.anonymiser.delay not configured, using defaults.
$
$ TIME="2014-01-21 12:31:08,087"
$
$ echo $TIME
2014-01-21 12:31:08,087
$ $AWK -v T="$TIME" '{ $0 >= T }' log4j.log
$
$

Moderator's Comments:
Mod Comment Code tags for code, PLEASE!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to parameterize multiple search patterns and generate a new file

I have one file: 123*100*abcd*10 123*101*abcd*-29*def 123*100*abcd*-10 123*102*abcd*-105*asd I would like to parameterize the search patterns in the following way so that the user could dynamically change the search pattern. *100* and *- (ie *minus) *102* and *- The output that is... (6 Replies)
Discussion started by: augustinep
6 Replies

2. Shell Programming and Scripting

Perl: Match a line with multiple search patterns

Hi I'm not very good with the serach patterns and I'd need a sample how to find a line that has multiple patterns. Say I want to find a line that has "abd", "123" and "QWERTY" and there can be any characters or numbers between the serach patterns, I have a file that has thousands of lines and... (10 Replies)
Discussion started by: Juha
10 Replies

3. Shell Programming and Scripting

Perl - How to search a text file with multiple patterns?

Good day, great gurus, I'm new to Perl, and programming in general. I'm trying to retrieve a column of data from my text file which spans a non-specific number of lines. So I did a regexp that will pick out the columns. However,my pattern would vary. I tried using a foreach loop unsuccessfully.... (2 Replies)
Discussion started by: Sp3ck
2 Replies

4. Shell Programming and Scripting

Search multiple patterns in multiple files

Hi, I have to write one script that has to search a list of numbers in certain zipped files. For eg. one file file1.txt contains the numbers. File1.txt contains 5,00,000 numbers and I have to search each number in zipped files(The number of zipped files are around 1000 each file is 5 MB) I have... (10 Replies)
Discussion started by: vsachan
10 Replies

5. Shell Programming and Scripting

search multiple patterns

I have two lists in a file that look like a b b a e f c d f e d c I would like a final list a b c d e f I've tried multiple grep and awk but can't get it to work (8 Replies)
Discussion started by: godzilla07
8 Replies

6. Shell Programming and Scripting

awk: Multiple search patterns & print in an one liner

I would like to print result of multiple search pattern invoked from an one liner. The code looks like this but won't work gawk -F '{{if ($0 ~ /pattern1/) pat1=$1 && if ($0 ~ /pattern2/) pat2=$2} ; print pat1, pat2}' Can anybody help getting the right code? (10 Replies)
Discussion started by: sdf
10 Replies

7. Shell Programming and Scripting

How to search Multiple patterns in unix

Hi, I tried to search multiple pattern using awk trans=1234 reason=LN MISMATCH rec=`awk '/$trans/ && /'"$reason"'/' file` whenevr i tried to run on command promt it is executing but when i tried to implment same logic in shell script,it is failing i.e $rec is empty ... (6 Replies)
Discussion started by: ns64110
6 Replies

8. Shell Programming and Scripting

How to search multiple patterns and remove lines from a file?

Hi, I have a file content as below. Table : PAYR Displayed fields: 15 of 15 Fixed columns: 4 List width 0999... (4 Replies)
Discussion started by: shirdi
4 Replies

9. Shell Programming and Scripting

Search and replace multiple patterns in a particular column only - efficient script

Hi Bigshots, I have a pattern file with two columns. I have another data file. If column 1 in the pattern file appears as the 4th column in the data file, I need to replace it (4th column of data file) with column 2 of the pattern file. If the pattern is found in any other column, it should not... (6 Replies)
Discussion started by: ss112233
6 Replies

10. Shell Programming and Scripting

Search Multiple patterns and display

Hi, I have scenario like below and need to search for multiple patterns Eg: Test Time Started= secs Time Ended = secc Green test Test Time Started= secs Time Ended = secc Green test Output: I need to display the text starting with Test and starting with Time... (2 Replies)
Discussion started by: weknowd
2 Replies
zhpev.f(3)							      LAPACK								zhpev.f(3)

NAME
zhpev.f - SYNOPSIS
Functions/Subroutines subroutine zhpev (JOBZ, UPLO, N, AP, W, Z, LDZ, WORK, RWORK, INFO) ZHPEV computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices Function/Subroutine Documentation subroutine zhpev (characterJOBZ, characterUPLO, integerN, complex*16, dimension( * )AP, double precision, dimension( * )W, complex*16, dimension( ldz, * )Z, integerLDZ, complex*16, dimension( * )WORK, double precision, dimension( * )RWORK, integerINFO) ZHPEV computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices Purpose: ZHPEV computes all the eigenvalues and, optionally, eigenvectors of a complex Hermitian matrix in packed storage. Parameters: JOBZ JOBZ is CHARACTER*1 = 'N': Compute eigenvalues only; = 'V': Compute eigenvalues and eigenvectors. UPLO UPLO is CHARACTER*1 = 'U': Upper triangle of A is stored; = 'L': Lower triangle of A is stored. N N is INTEGER The order of the matrix A. N >= 0. AP AP is COMPLEX*16 array, dimension (N*(N+1)/2) On entry, the upper or lower triangle of the Hermitian matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows: if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j; if UPLO = 'L', AP(i + (j-1)*(2*n-j)/2) = A(i,j) for j<=i<=n. On exit, AP is overwritten by values generated during the reduction to tridiagonal form. If UPLO = 'U', the diagonal and first superdiagonal of the tridiagonal matrix T overwrite the corresponding elements of A, and if UPLO = 'L', the diagonal and first subdiagonal of T overwrite the corresponding elements of A. W W is DOUBLE PRECISION array, dimension (N) If INFO = 0, the eigenvalues in ascending order. Z Z is COMPLEX*16 array, dimension (LDZ, N) If JOBZ = 'V', then if INFO = 0, Z contains the orthonormal eigenvectors of the matrix A, with the i-th column of Z holding the eigenvector associated with W(i). If JOBZ = 'N', then Z is not referenced. LDZ LDZ is INTEGER The leading dimension of the array Z. LDZ >= 1, and if JOBZ = 'V', LDZ >= max(1,N). WORK WORK is COMPLEX*16 array, dimension (max(1, 2*N-1)) RWORK RWORK is DOUBLE PRECISION array, dimension (max(1, 3*N-2)) INFO INFO is INTEGER = 0: successful exit. < 0: if INFO = -i, the i-th argument had an illegal value. > 0: if INFO = i, the algorithm failed to converge; i off-diagonal elements of an intermediate tridiagonal form did not converge to zero. Author: Univ. of Tennessee Univ. of California Berkeley Univ. of Colorado Denver NAG Ltd. Date: November 2011 Definition at line 138 of file zhpev.f. Author Generated automatically by Doxygen for LAPACK from the source code. Version 3.4.1 Sun May 26 2013 zhpev.f(3)
All times are GMT -4. The time now is 01:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy