美文网首页Linux
Find a file and operate it

Find a file and operate it

作者: JaedenKil | 来源:发表于2019-06-11 15:34 被阅读0次
    find . -type f -name '*file*' -exec echo {} +
    
    // In current folder and its descendant, find all files which contains 'file' in its name, and echo the file names.
    
    find . -type f -name '*file*' -exec cat {} +
    
    // In current folder and its descendant, find all files which contains 'file' in its name, and cat them one by one.
    

    相关文章

      网友评论

        本文标题:Find a file and operate it

        本文链接:https://www.haomeiwen.com/subject/vpyqfctx.html