I can do the following to copy a file from subdirectories.
find . -name "file1.txt" -type f -exec cp {} ./distfolder \;
How do I change this code to copy multiple files (file1.txt, file5.txt, file6.txt
) by their names from subdirectories?
Simply doing find . -name "file1.txt, file5.txt, file6.txt" -type f -exec cp {} ./distfolder \;
doesn't work.