grep 命令系列:从文件中搜索并显示文件名
我怎样从几个文件中搜索(grep),并只显示匹配到的文件的文件名? 当你从不止一个的文件中搜索时,默认它将显示文件名: grep "word" 文件名 grep root /etc/* 示例输出: /etc/bash.bashrc: See "man sudo_root" for details. /etc/crontab:17 * * * * root cd / run-parts --report /etc/cron.hourly /etc/crontab