Link to home
Start Free TrialLog in
Avatar of stakor
stakorFlag for United States of America

asked on

Dirty Data and Errors

I want to scan a log file for bad connections, looking in column #3, and #6 only. I only want to print lines that have a numerical value of greater than say 250. Some of the columns might have non-numerical values in them. They should not be included.

I have included output below. I would only want the line starting with "name1" to be printed. The value to be over 250 could be either #3, or #6.

Router   Interface     ---ES--  --SES--  --SEFS-  --UAS--  --CSS--  --PCV--  --LES--  --BES--  -TotVal-
name1 T1_0/0/0       389        9       43       38        0     3110        0      279       96
name2 T1_0/0/0         0        0        0        0        0        0        0        0       96
name3 T1_0/0/1         0        0        0        0        0        0        0        0       96
name4 T1_0/1/0         0        0        0        0        0        0        0        0       96
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial