find does not find recursively
find, linux, shell
Solution
When using a wildcard in an argument it is expanded by the shell. To prevent this, you need to write "*.mov".
In your case, the shell expands to whatever files it finds before passing the argument to find, which then gets a list of files and will not search based on the original pattern.
Problem
I'm in directory "home" and I run this command ``` find . -iname *.mov ``` and it produces ``` ./root/movies/Corey/holtorf/Intro.mov ``` Now, I "cd .." and run the same command ``` find . -iname *.mov ``` This time "Intro.mov" is not in the result. What are the reasoning behind this? And what is the command to search recursively for every file ending with ".mov" in the current directory? Thanks.