In Linux to recursively copy select files within a directory structure to a destination folder (without maintaining the source directory structure) use the below command,
find . -name '*tests.txt' -exec cp {} /myprojects/myfiles \;
note: the '\;' is needed by the exec command
No comments:
Post a Comment