看板 FreeBSD 關於我們 聯絡資訊
請教各位大大, 最近自家的SERVER一直被攻擊, 想統計一下,並且整理資料, 在網路上看到這篇文章。 http://chejen-l.blogspot.com/2011_05_01_archive.html grep 'login error' /var/log/openwebmail.log > auth_error.log sed ' s/^.* (\[0-9]*\.[0-9]*.\[0-9]*\.[0-9]*\).*/\1/g 'auth_error.log > ip_list.txt sort ip_list.txt > sort_ip_list.txt uniq -c sort_ip_list.txt 但是在我的FreeBSD中,第二行指令一直無法成功。 顯示的錯誤訊息為:sed: 1: "s/^.* ([0-9]*\.[0-9]*.\ ...": RE error: parentheses not balanced 不知道是我的系統問題,還是我複製的指令有問題呢? 我的FreeBSD 是6.1,暫時沒打算升級,請大大指導,謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 219.69.120.76