Linux 统计多个文件中 某字符串出现的行数

cat log_0 log_1 log_2 log_3 log_4 log_5 log_6 log_7 log_8 log_9 | grep "object has no attribute" | wc -l 或者 cat log_* | grep "object has no attribute" | wc -l 一、先用cat命令读入多个文件 二、用grep 找到须要的行 三、用 wc -
相关文章
相关标签/搜索