如何递归搜索具有某些扩展名的文件? [英] How to recursively search for files with certain extensions?
本文介绍了如何递归搜索具有某些扩展名的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在我的Linux系统(专用的虚拟主机)上找到所有的.psd
文件.我尝试过这样的操作:ls -R *.psd
,但这不起作用.有建议吗?
I need to find all the .psd
files on my Linux system (dedicated web hosting). I tried something like this: ls -R *.psd
, but that's not working. Suggestions?
推荐答案
您可以使用以下find命令来做到这一点:
You can use the following find command to do that:
find /path/to/search -iname '*.psd'
iname
进行不区分大小写的搜索.
iname
does a case insensitive search.
这篇关于如何递归搜索具有某些扩展名的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文