grep grep -c 匹配行数 -n 匹配行号 -v 不包含的行 -i 不区分大小写 -h 不显示文件名,多文件时。 -l 只列出符合匹配文件名。 grep search_key * -s 默认 -r 递归