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.

asked May 6, 2014 at 23:31

1 Answer 1

1

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

find "/Volumes/Products/"*"/Work Instructions" -print
find /Volumes/Products/*/Work\ Instructions -print
answered May 6, 2014 at 23:39

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.