Hi,

Can anyone give me a regular expression(perhaps a one liner) ?
Matching an expression in a single line is easy. But if I have to find it out in a 
array of scalars, it becomes tricky for me.

An excerpt of my output buffer looks like this. 
***************************************************************
 ifEntry.1.13 = 13 
 ifEntry.2.13 = FastEthernet3/9 
 ifEntry.3.13 = 6 
 lifEntry.20.13 = administratively down
Jul  5 03:22:33.851 cst: SNMP: Queuing packet to 10.3.0.1
Jul  5 03:22:33.851 cst: SNMP: V1 Trap, ent products.310, addr 10.20.0.1, gentrap 2, 
spectrap 0 
 ifEntry.1.13 = 13 
 ifEntry.2.13 = FastEthernet3/9 
 ifEntry.3.13 = 6 
 lifEntry.20.13 = administratively down
Jul  5 03:22:34.079 cst: %SYS-5-CONFIG_I: Configured from console by vty2 (10.3.0.9)
****************************************************************

I need to write a simple regular expression which matches the occurance of the 
combination of pattern as shown in RED.

I have to write many such reg. expressions but thay have to be simple and preferably a 
one liner.

Regards
Rajeev

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to