How to recursively search for files with certain extensions?

北城余情 提交于 2019-12-03 05:49:27

You can use the following find command to do that:

find /path/to/search -iname '*.psd'

iname does a case insensitive search.

you also can

ls ./**/*.psd

but:

  • you must have bash version 4+
  • you must have shopt -s globstar #in your .bashrc or .profile, etc....
  • will search case sensitive (or you must set shopt -s nocaseglob too)
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!