![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
肥肥的八月
踌躇满志
展开
-
grep命令详解
ps -ef |grep -v grep|grep -v "sh -c"|grep "perl/my/perl/test.pl"|wc -l检查系统进程(排除带有“grep” 或 “sh -c”的命令行), 统计其中命令行包含 "perl /my/perl/test.pl"的进程数。其中, “ps -ef” 显示全部进程;“grep -v” 排除一部分匹配条件的进程“wc -l ” 统计行数...转载 2021-08-26 17:25:35 · 469 阅读 · 0 评论 -
Linux文件夹下查询字符串
./ -name "*.out" | xargs grep "完成"-name 文件后缀 "*.*"grep"完成" 要查询的字段原创 2021-08-10 17:22:55 · 91 阅读 · 1 评论