projects
/
dell-switch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a99f455
)
grep through dumps in /dev/shm/sw.mac.port
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 11 Apr 2018 13:35:37 +0000
(15:35 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 11 Apr 2018 13:35:37 +0000
(15:35 +0200)
snmp-grep.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/snmp-grep.sh
b/snmp-grep.sh
new file mode 100755
(executable)
index 0000000..
491a074
--- /dev/null
+++ b/
snmp-grep.sh
@@ -0,0
+1,4
@@
+#!/bin/sh -xe
+patt=$*
+test -z "$patt" && patt='.'
+grep -r -i $patt /dev/shm/sw.mac.port/ | sed -e 's/^.*snmp.//' -e 's/:[^:]*: / /' -e 's/\].*: / /'