Copies all files under the current folder like "file.ext" with "FooBar" in the path to the root of the current folder, preserving mode, ownership and timestamp attributes.
find . -name "file.ext"| grep "FooBar" | xargs -i cp -p "{}" .