shell magic

Copying files by getting names to be copied from some folder content:
ls myNamesDir | sed -e 's/\.[a-zA-Z]*$//' | xargs -I {} cp "{}.CR2" myDestinationDir