I have a folder which has many subdirectories, each with a *.nr
file in them. There are 1000 subdirectories, each containing at least one *.nr
file. Is there a quick way to copy all those *.nr
files into a single directory?
I can write a quick python
script to iterate through the files, but this seems like overkill if there is a quick command line based way to do it.
I've been googling, but I'm not sure what exact terms I should be googling.
Thanks!
something like
find /path/to/src -name "*.nr" -exec cp \{\} /path/to/dest \;
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