Linux commands

From Krm
Revision as of 11:39, 20 December 2010 by Keshav (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 }'

Get substring of a column

awk '{print $1" " substr($2)}'
Personal tools