문제

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?

도움이 되었습니까?

해결책

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)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top