The following command will find all the files (-type f) in /path
and then copy them using cp
to the current folder. Note the use if -I %
to specify a placeholder character in the cp
command line so that arguments can be placed after the file name.
find /path -type f -print0 | xargs -0 -I % cp % .
Tested with xargs (GNU findutils) 4.4.0