推 who4:謝謝 12/29 09:10
※ 引述《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.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.47.32.52
※ 編輯: DBoyX 來自: 114.47.32.52 (12/29 01:29)