📜  grep 输出选项 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:27.255000             🧑  作者: Mango

代码示例1
-c, --count           # print the count of matching lines. suppresses normal output
    --color[=WHEN]    # applies color to the matches. WHEN is never, always, or auto
-m, --max-count=NUM   # stop reading after max count is reached
-o, --only-matching   # only print the matched part of a line
-q, --quiet, --silent
-s, --no-messages     # suppress error messages about nonexistent or unreadable files