linux之用 grep -r 关键字 快速搜索在目录下面的含有关键字的文件

1、快速搜索在目录下面的含有关键字的文件


我们采用下面命令

    cd directories
     
    grep -r  关键字



2、搜索结果

[root@mq-1 ]# grep -r sshkey
configs/kubernetes.groovy:def secretVolume = new SecretVolume('/root/.ssh', 'sshkey', '384')
templates/deploy_deployment.yaml:            - name: host-sshkey
templates/deploy_deployment.yaml:        - name: host-sshkey

猜你喜欢

转载自www.cnblogs.com/weifeng1463/p/12820129.html
今日推荐