今天从boss那里学了一招,怎么查找目录下所有文件中的关键字
使用grep这个命令
更多具体的用法可以man grep或者上网查看,这里仅介绍我用到的
- jiangk@ubuntu:~/kernel/drivers/media/video/samsung/fimc$ grep clk_get *
- Binary file built-in.o matches
- csis.c: parent = clk_get(dev, pdata->srclk_name);
- csis.c: mout_csis = clk_get(dev, "mout_csis");
- csis.c: s3c_csis->clock = clk_get(dev, pdata->clk_name);
- csis.c: s3c_csis->clock = clk_get(dev, plat->clk_name);
- fimc_capture.c: if (clk_get_rate(cam->clk)) {
- Binary file fimc_capture.o matches
- fimc_dev.c: srclk = clk_get(&pdev->dev, cam->srclk_name);
- fimc_dev.c: mout_cam = clk_get(&pdev->dev, "mout_cam1");
- fimc_dev.c: cam->clk = clk_get(&pdev->dev, cam->clk_name);
- fimc_dev.c: if (!clk_get_parent(mout_cam)) {
- fimc_dev.c: srclk = clk_get(&pdev->dev, pdata->srclk_name);
- fimc_dev.c: ctrl->clk = clk_get(&pdev->dev, pdata->clk_name);
- Binary file fimc_dev.o matches
- ipc.c: ipc->clk = clk_get(&pdev->dev, IPC_CLK_NAME);
- Binary file ipc.o matches
在fimc目录下,我要查找所有文件中包含clk_get的信息内容
阅读(2072) | 评论(0) | 转发(1) |