LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Recursive Copy (https://www.linuxquestions.org/questions/linux-newbie-8/recursive-copy-343888/)

fizgig10 07-16-2005 11:25 PM

Recursive Copy
 
I'm trying to move all my mp3 files that are in various directories (by band and album) into one big folder all together. For example:

\music
\311
\Transistor
\Prisoner.mp3
\A Perfect Circle
\Mer de noms
\Judith.mp3

My guess was to go into the music directory and try "mv -r *.mp3 ." but that didn't work.

Is there a way to accomplish this easily?

Tinkster 07-16-2005 11:58 PM

find -type f -iname "*.mp3" -exec mv "{}" target/. \;


All times are GMT -5. The time now is 10:32 AM.