LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2005, 12:25 AM   #1
fizgig10
Member
 
Registered: Nov 2004
Location: San Diego
Distribution: Mepis w/ 2.6.9 kernel, KDE 3.3
Posts: 36

Rep: Reputation: 15
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?
 
Old 07-17-2005, 12:58 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP::Recursive innuendo_98 Programming 2 04-05-2005 09:28 AM
How to do recursive file copy of directory for specific files? Arodef Linux - Newbie 4 06-29-2004 06:35 PM
rm -r what is recursive wogga Linux - Software 3 05-28-2004 03:29 PM
boot error after using Copy Commander to copy debian system onto larger new drive Interceptor Linux - Hardware 7 05-04-2003 01:40 PM
recursive downloads watashiwaotaku7 Linux - General 4 03-08-2003 10:29 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration