Any old find should be able to do this (no fancy GNU options needed):
[tt]find /your/source/dir -type f -exec cp {} /your/dest/dir \;[/tt]
But of course you loose the dir structure in the copy destination and you poosibly overwrite files if files with the same name exist in different subdirs of /your/source/dir ...
Correct, p5wizard. My solution would have more sense only if I would continue as I started to play with it. As I renounced to copy with path to avoid overwrites, your solution is better.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.