Linux中grep/egrep查找命令
grep
--color ###顏色着重顯示命中的文件及文件件
-n ###顯示行號 number
-i ###忽略大小寫 ignore
-c ###count統計出現匹配的次數
-E ###標准posix,支持正則表達式
grep -E -v '(^$|^#)' xxxx 等價於egrep -v '(^$|^#)' xxx
-A n ###after 前面多少行
-B n ###before 后面多少行
-C n ###centor 前后多少行
學而思,思兒通,通則達!
