如何在目录中递归查找文件 [英] How do I find-file recursively in directories
本文介绍了如何在目录中递归查找文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通常,我知道文件名,但不记得或找到指定目录的麻烦。我想要能够找到文件x / y / * / some_file.txt,其中*将允许在递归目录中进行搜索,而不是仅在当前目录中。
Often, I know the file name but don't remember or find it cumbersome to specify the exactly directory. I'd like to be able to do find-file x/y/*/some_file.txt where * would allow searching in recursive directories instead of just the current one.
推荐答案
如这里:
M-x find-name-dired
提供目录和模式后,匹配的文件将显示在Dired缓冲区中。您可以浏览文件列表( Cn
, Cp
等),并根据需要打开文件( Ret
)。
After you provide the directory and the pattern the matching files will be displayed in a Dired buffer. You can navigate the file list (C-n
, C-p
, etc.) and open files as you wish (Ret
).
这篇关于如何在目录中递归查找文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文