請問tcpdump跟awk這個指令 - Linux

Table of Contents

※ 引述《who4 (哥哥最愛獅子丸了)》之銘言:
: 上網查了一下,BEGIN是做初始化的動作
: 但是後面的substr(), length($8), srand(), FNR,實在是超出我能理解的範圍
substr 從給定字串中取出它的一部分
length 字串長度
srand 亂數
FNR 不曉得,應該是 awk 的分隔字元之類的東西

*EDIT: man awk 裡面有:
FNR: The ordinal number of the current record in the current file.

--

All Comments

Frederic avatarFrederic2009-12-31
謝謝