Given a directory X that contains several subdirectories and files, I would like to list the names of the immediate child directories of X that (directly or indirectly) contain file names matching the regex ^rf.*\.img$.How can this be achieved on OS X?
How can I list the names of directories that contain file names matching a pattern?
files;find;osx