find files and copy to a directory in linux code example
Example 1: find files with extension and copy
find /path/to/search/ -type f -name "glob-to-find-files" | xargs cp -t /target/path/
Example 2: how to copy file to another directory in linux
cp -r <FILEPATH> <WHEREYOUWANTTOCOPYTO>
#for example
cp -r /home/thor/asia.txt /home/thor/