您的位置:首页 > 运维架构 > Linux

Linux下搜索某种类型文件(比如.c)指定字符的命令(grep -r --include=*spi.c "spi_setup" kernel-3.18/)

2017-05-23 18:59 976 查看
1、现在我需要搜索kernel-3.18/目录下后缀名为*spi.c的文件包含有“spi_setup”字符的文件。

               命令格式:grep -r --include=*spi.c "spi_setup" kernel-3.18/

2、执行grep -r --include=*spi.c "spi_setup" kernel-3.18/,效果如下。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐