I have a directory containing folders and subfolders. These subfolders contain, for example, .xml
files.
I'd like to copy all of the .xml
files into a separate folder. My UNIX is rusty; any and all help would be greatly appreciated. Thanks, Adam
Do you mean copy all .xml files from all subfolders without having to specify the subfolder names?
find . -name \*.xml -exec /bin/cp {} /dest/dir/ \;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With