Task: Copies all files under the /testbed folder like "file.txt" with "FooBar" in the path to the root of the current folder, preserving mode, ownership and timestamp attributes.
Command: find /testbed -type f -path '*FooBar*' | xargs -i cp -p "{}" .
Equivalent command: find /testbed -type f -path '*FooBar*' -exec cp --preserve=mode,ownership,timestamps {} ./ \;