I found this post that does what I am looking to do but the original poster knew what files they were searching for.
Finding directories that contains given files?
How would I update this find command to search for and list any sub directories that contain two files of any name but have two specific file extensions?
find -type d -exec sh -c '[ -f "$0"/index.php ] && [ -f "$0"/style.css ]' '{}' \; -print
Specifically I am looking to search all the subfolders for directories that contain a *.RAR file AND a *.VMK file. When I replace the "index.php" and "style.css" with the specific filenames of a known folder, I get the proper result.
Now I just need some help in replacing those specific filenames with the wildcard and extension.
I've tried these two options and they do not work as hoped.
find -type f '[ -f "$0"/*.rar ] && [ -f "$0"/*.vmk ]' '{}' \
find -type f '[ -f "$0"/"*.rar" ] && [ -f "$0"/"*.vmk" ]' '{}' \
Thank you in advance for your assistance, as it is much appreciated! :)
Regards.