"Find" problem in Bash Script
I have an extremely weird issue that I cannot seem to figure out for the life of me. I am attempting to search a drive for all files with a *.mkv extension. Here is the command:
This works for about 80% of the directories on this drive, however a few of them give me an error: "Find: /Volumes/External/FolderC/FolderS: No such file or directory". This is strange because it can identify these folders to tell me they don't exist. I can specify the find command to look at the direct path of the directories that "don't exist", and it works perfectly fine.
find "/Volumes/External" -name '*.mkv'
Finally, the weirdest part of this whole thing is that it is somehow related to the alphabetical name of the directory. For instance, if I rename "FolderS" to "FolderR" it works perfectly fine. If I rename it to "FolderT", however, I get the same issue. Anything after "S" doesn't seem to work. I have spent hours trying to figure this out and it's driving me mad. Anyone have an idea?
Also, all permissions are the same on everything, so I don't believe that's related.