Linux commands
From Krm
(Difference between revisions)
(Created page with '== tcpdump == CDP packets 'ether[20:2] == 0x2000' PPPoE discovery, session packets pppoed pppoes') |
|||
Line 6: | Line 6: | ||
PPPoE discovery, session packets | PPPoE discovery, session packets | ||
pppoed pppoes | pppoed pppoes | ||
+ | |||
+ | |||
+ | == awk == | ||
+ | |||
+ | Sum the numbers in a column | ||
+ | | awk '{ SUM += $1} END { print SUM }' |
Revision as of 17:19, 20 December 2010
tcpdump
CDP packets
'ether[20:2] == 0x2000'
PPPoE discovery, session packets
pppoed pppoes
awk
Sum the numbers in a column
| awk '{ SUM += $1} END { print SUM }'