linux查找文件 打印相关的字符

find /etc/yum.repos.d/ -type f -name "*.repo" |xargs grep -r "RPM-GPG-KEY-CentOS-SIG-Cloud";

原文地址:https://www.cnblogs.com/cheyunhua/p/15753534.html