學習Linux命令(31)

grep命令 命令格式 grep [option] pattern file 命令功能 用於過濾/搜索特定的字符,可以使用正則表達式配合命令。 命令參數 與正則表達式有關的參數: -E或--extend-regexp:將表達式作爲擴展的規則使用 -F或--fixed-string:表達式是一組新行分隔標誌字符串 -G或--basic-regexp:將表達式視作基本規則 -P或--perl-rege
相關文章
相關標籤/搜索