I want to find all files in all subdirectories which has a name ExampleDireg.+ ParentDirA   + ChildDirA     - file1.txt   + ExampleDir     - file2.txt+ ParentDirB   + ChildDirB     - file3.csv   + ExampleDir     - file4.csvExecuting command should return: file2.txt and file4.csvI have tried the following:find . -type d -name ExampleDir | xargs find -type ffind . -type d -name ExampleDir -exec find -type f {} \;find . -type d -name ExampleDir -exec find -type f {} +They all return:find: paths must precede expressionIf I were to go down this route (which I think is logical) I would have to find out how to pipe the path to the find command.Is there a better way?
Find all files in all subdirectories with name ExampleDir
centos;find;filenames;xargs
Consider simplifying things with GNU find's -path extension:find . -type f -path */ExampleDir/*