Hi folks
I am not allowed to install GNU grep on AIX.
Here my code excerpt:
grep_fatal () {
/usr/sfw/bin/gegrep -B4 -A2 "FATAL|QUEUE|SIGHUP"
}
Howto the same on AIX based machine?
from manual GNU grep
‘--after-context=num’
Print num lines of trailing context after... (4 Replies)
Hi,
I have two comma separated files. I would like to see field 1 value of File1 exact match in field 2 of File2. If the value matches, then it should print matched lines from File2. I have achieved the results using cut, paste and egrep -f but I would like to use awk as it is efficient way and... (7 Replies)
i have a file containing over 1 million records,and i want to print about 300,000 line containing a some specific words.
file has content.
eg
1,rrt,234
3,fgt,678
4,crf,456
5,cde,drt
6,cfg,123
and i want to print the line with the word fgt,crf
this is just an example,my file is so... (2 Replies)
My item was not answered on previous thread as code given did not work
I wanted to print records from file2 where comparing column 1 and 16 for both files find rows where column 16 in file 1 does not match column 16 in file 2
Here was CODE give to issue
~/unix.com$ cat f1... (0 Replies)
Is there a way with aw to print all lines after a string is found
There is a file like this
.......
........
2012/19/11 :11.58 PM some data
lne no date
2012/19/11 :11.59 PM some other data
2012/20/11 :12.00 AM some other data
some line without dates
some more lines without dates... (8 Replies)
Hello,
I have two files file 1 and file 2 each having result of a query on certain database tables and need to compare for Col1 in file1 with Col3 in file2, compare Col2 with Col4 and output the value of Col1 from File1 which is a) not present in Col3 of File2 b) value of Col2 is different from... (2 Replies)
Hi,
here are few lines present in the logs. I want to grep on Error and print few lines before and after Error word is found
line1
Line2
Line3
Error
Line4
Line5
Line6
Line7
I want the output to be
Line2
Line3
Error
Line5 (1 Reply)
URGENT HELP IS NEEDED!!
I am looking to move matching lines (01 - 07) from File1 and 77 tab the matching string from File2, to File3.txt. I am almost done but
- Currently, script is not printing lines to File3.txt in order.
- Also the matching lines are not moving out of File1.txt
... (1 Reply)
Hi,
I need help on a complicated file that I am working on. I wanted to extract important info from a very huge file. It is space delimited file. I have hundred thousands of records in this file. An example content of the inputfile as below:-
##
ID Ser402 Old; 23... (2 Replies)
In the tab delimited files below I am trying to match $2 in file1 to $2 of file2. If a match is found the awk checks $3 of file2 and if it is greater than 40% and $4 of file2 is greater than 49, the line in file1 is printed. In the desired output line3 of file1 is not printed because $3 off file2... (9 Replies)
Discussion started by: cmccabe
9 Replies
LEARN ABOUT SUSE
distrib.pats
DISTRIB.PATS(5) InterNetNews Documentation DISTRIB.PATS(5)NAME
distrib.pats - Default values for the Distribution: header
DESCRIPTION
The file pathetc/distrib.pats is used by nnrpd to determine the default value of the Distribution: header. Blank lines and lines beginning
with a number sign ("#") are ignored. All other lines consist of three fields separated by a colon:
<weight>:<pattern>:<value>
The first field is the weight to assign to this match. If a newsgroup matches multiple lines, the line with the highest weight is used.
This should be an arbitrary integer greater than zero. The order of lines in the file is only important if groups have equal weight (in
which case, the first matching line will be used).
The second field is either the name of a newsgroup or a uwildmat(3)-style pattern to specify a set of newsgroups.
The third field is the value that should be used for the Distribution: header of a posted article, if this line was picked as the best
match and no Distribution: header was supplied by the user. It can be an empty string, specifying that no Distribution: header should be
added. If it is not empty, it is better to only use US-ASCII characters for that field; otherwise, make sure it is encoded in UTF-8.
When a post is received by nnrpd that does not already contain a Distribution: header, each newsgroup to which an article is posted will be
checked against this file in turn, and the matching line with the highest weight will be used as the value of the Distribution: header. If
no lines match, or if the matching line has an empty string for its third field, no header will be added. In case a distribution is added
by nnrpd, make sure it is not rejected by the newsfeeds "ME" entry.
A list of recommended distributions can be specified and described in distributions(5).
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. Converted to POD by Russ Allbery <rra@stanford.edu>.
$Id: distrib.pats.pod 8803 2009-11-15 09:29:41Z iulius $
SEE ALSO distributions(5), inn.conf(5), newsfeeds(5), nnrpd(8), uwildmat(3).
INN 2.5.2 2009-11-15 DISTRIB.PATS(5)