Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
470 views
in Technique[技术] by (71.8m points)

linux - 如何基于通配符匹配递归地找到当前文件夹和子文件夹中的所有文件?(How can I recursively find all files in current and subfolders based on wildcard matching?)

如何基于通配符匹配递归地找到当前文件夹和子文件夹中的所有文件?

  ask by john translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Use find for that:

(为此使用查找 :)

find . -name "foo*"

find needs a starting point, and the .

(find需要一个起点,然后.)

(dot) points to the current directory.

((点)指向当前目录。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...