I'm trying to move a large set of files in a large directory which meet certain criteria to a different directory. I think that the easiest way to do this is with 'nested' functions on the command line. Following some online tutorials and howtos, this is what I have have tried so far:

Code:
mv $(find . -name '*.m4p') /home/user/shared/DRMed/
but that returns this output:

Code:
mv: cannot stat /example.m4p no such file or directory
mv: cannot stat exmample/otherexample no such file or directory
I know that the 'find' portion of this works fine, it locates all of the correct files and lists them in 1 per line format. The problem (I think) is in how mv parses the output from the find command. Perhaps there is a simple option for find that will allow mv to properly interpret the results? (-print0 does not work). Am I missing something obvious? Tried the man pages, but couldn't find anything about linking mv and find there...please help!