如何根据通配符匹配递归查找当前文件夹和子文件夹中的所有文件? [英] How can I recursively find all files in current and subfolders based on wildcard matching?
本文介绍了如何根据通配符匹配递归查找当前文件夹和子文件夹中的所有文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何根据通配符匹配递归查找当前文件夹和子文件夹中的所有文件?
How can I recursively find all files in current and subfolders based on wildcard matching?
推荐答案
使用 find为此:
find . -name "foo*"
find
需要一个起点,.
(点)指向当前目录.
find
needs a starting point, and the .
(dot) points to the current directory.
这篇关于如何根据通配符匹配递归查找当前文件夹和子文件夹中的所有文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文