wiki:jazz/12-02-28

Version 1 (modified by jazz, 13 years ago) (diff)

--

2012-02-28

AWK

  • How to get started using awk
    • 用 -F"分隔符號"
      # awk -F’:’ {’print $1′} /etc/passwd 
      
    • 統計 Apache Access Log
      # awk ‘$9 == 200 { print $1}’ access.log | sort | uniq -c | sort -nr
      

Debian