I have a header file like the following and the field "IDENTIFIER" can be at any possition on this line,
The line can containt a variable number of field, not alway the same depending of the header file i use
I try to write a fonction that will return me the position of the collum "IDENTIFIER"
any idea ?
Last edited by kykyboss023; 11-10-2010 at 12:03 PM..
Hello,
I have a file that looks like this:
num11 num12 num13 word1
num21 num22 num23 word2
num31 num32 num33 word3
.
.
.
I would like to search for the lines that contain a given number, but I need to narrow the search only to the first field, that means that the number has to... (4 Replies)
I want to find the top N entries for a certain field based on the values of another field.
For example if N=3, we want the 3 best values for each entry:
Entry1 ||| 100
Entry1 ||| 95
Entry1 ||| 30
Entry1 ||| 80
Entry1 ||| 50
Entry2 ||| 40
Entry2 ||| 20
Entry2 ||| 10
Entry2 ||| 50... (1 Reply)
Hi,
I have a file that has data in it that says
00:01:48.233 1212
00:01:56.233 345
00:09:01.221 5678
00:12:23.321 93444
The file has more line than this but i just wanted to put in a snippet to ask how I would get the highest number with time stamp into another file. So from the above... (2 Replies)
Hello,
I have a text file with n lines in the following format (9 column fields):
Example:
contig00012 149606 G C 49 68 60 18 c$cccccacccccccccc^c
I need to count the number of lower-case and upper-case occurences in column 9, respectively, of the... (3 Replies)
Dears,
I need a script or command which can find the unique number from the second filed and against that number it adds the total of first field .
17215630 , 0
907043 ,1
201050 ,10
394149 ,4
1964 ,9
17215630, 0
907043 ,1
201050, 10
394149 ,4
1964 ,9
1234234, 55
23 ,100
33 ,67
... (2 Replies)
I have a comma separated file containing numbers, I would like to read the file and divide each number by 1024 and create an output file.
Input file :
50312.00,3434.05, ,3433.34,124344.00,434343.00, , ,
Output file:
49.13,3.35,3.35,0,12.05,424.16,0,0
Please click this link: How to... (2 Replies)
HI,
I have two files and contains many Fields or columns with | (pipe) delimitor, wanted to compare both the files and get only unmatched perticular fields number.
ex:
first.txt
111 |abc| 230| hbc | bb2 | cs
second.txt
111 |abc |230 |abn | bb2 | fp
Here the different data in two... (2 Replies)
HI,
I have two files and contains many Fields or columns with | (pipe) delimitor, wanted to compare both the files and get only unmatched perticular fields number.
ex:
first.txt
1 | 2 | 3
111 |abc| 230
hbc | bb2 | cs
second.txt
1 | 2 | 3
111 |abc |230
abn | bb2 | fp
Here the... (7 Replies)
Hi
I want to use awk to match where field 3 contains a number within string - then print the line and just the number as a new field.
The source file is pipe delimited and looks something like
1|net|ABC Letr1|1530|||
1|net|EXP_1040 ABC|1121|||
1|net|EXP_TG1224|1122|||
1|net|R_North|1123|||... (5 Replies)
Hello Friends
I have a data file which is comma seperate (,) where i am expecting 2 column but there are number of time when file comes with data having more than 2 column.
I want to check which line has more columns
20141115,15/11/2014
20141129,29/11/2014
20141003,03/10/2014... (4 Replies)
Discussion started by: guddu_12
4 Replies
LEARN ABOUT CENTOS
agentxtrap
AGENTXTRAP(1) Net-SNMP AGENTXTRAP(1)NAME
agentxtrap - send an AgentX NotifyPDU to an AgentX master agent
SYNOPSIS
agentxtrap [OPTIONS] trap-oid [OID TYPE VALUE...]
DESCRIPTION
agentxtrap issues an AgentX NotifyPDU to a master agent. One or more object identifiers (OIDs) can be given as arguments on the command
line. A type and a value must accompany each object identifier. Each variable name is given in the format specified in variables(5).
OPTIONS -c contextName
if the -c option is present then the notification is sent in the nondefault name context.
-U uptime
if the -U option is present then that value, parsed as centiseconds, is taken to be the sysUpTime field of the application.
-x ADDRESS
if the -x option is present then contact the AgentX master at ADDRESS and not the default one.
Additionally all the options described in snmpcmd(1) under the MIB PARSING OPTIONS, LOGGING OPTIONS and INPUT OPTIONS headers as well as
the -d, -D, -m and -M options are supported.
In OID TYPE VALUE the parsing of the VALUE field is controlled by the TYPE field. The possible values for the TYPE field is one of the fol-
lowing characters:
= Let OID decide how VALUE should be interpreted
i INTEGER
u Unsigned
c Counter32
s OCTET STRING of chaacters
x OCTET STRING, entered as a sequence of optionally space separated hexadecimal digit pairs
d OCTET STRING, entered as a sequence of space separated decimal digits in the range 0 - 255
n NULL
o OBJECT IDENTIFIER
t TimeTicks
a IpAddress
b BITS
which are handled in the same way as the snmpset command.
EXAMPLES
To send a generic linkUp trap to the manager for interface 1 the following command can be used:
agentxtrap netSnmp.0.3 ifindex.1 i 1
SEE ALSO snmpcmd(1), snmpset(1), variables(5), RFC 2741
V5.7.2 20 Dec 2009 AGENTXTRAP(1)