1

I'm trying to list all the files in a specific sub-directory but different directories which are themselves on a different volume.

The following works, but only on a fully specific sub-directory (and I've got hundreds of them):
find "/Volumes/Products/Specific Product Directory/Work Instructions" -print

What I haven't been able to figure out is how to search across varied sub-directories. So, for example, using the wild character * in place of each specific product directory:
find "/Volumes/Products/*/Work Instructions" -print // Does not work.

1

The * is only interpreted by the shell when not quoted.

find "/Volumes/Products/"*"/Work Instructions" -print
find /Volumes/Products/*/Work\ Instructions -print

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.