grep -b 2 "peak_flow_alarm_cleared" /data/SNMPLogs/snmp_$DateTimeStamp.log | grep ipfix 2>&1 >/dev/null
for capturing a line + 2 line before it and further serching a specific term among those lines
for after use -n or -a n
for both use -c n
*upper and lower case both work.
for capturing a line + 2 line before it and further serching a specific term among those lines
for after use -n or -a n
for both use -c n
*upper and lower case both work.
No comments:
Post a Comment