Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-21-2009, 08:05 AM   #1
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

Rep: Reputation: 39
copying multiple files in multiple folders ??

I have a folder of drum samples.Kicks,snares,etc..

strat@frostbite:~/GSCW/Drum_Kit-1$ ls
14-Crash  22-RIDE   Hats-1  Kick-1   Snare hits-1  TOM-10-single  TOM-13-single
18-Crash  6-Splash  Hats-2  SnareFX  TOM-10-flams  TOM-13-flams
I want to copy the .wav files in each directory to another directory.and just the wav files.Not the directories themselves.what command would i use to do this..??I gave cp --help a look..but couldnt figure what command to use.
Old 02-21-2009, 08:17 AM   #2
Registered: Mar 2007
Location: United Kingdom
Distribution: Mint, OpenSUSE,Dream
Posts: 68

Rep: Reputation: 17
In source directory type:

cp -iv *.wav name_of_destination_directory

I always use the switches -iv so I see everything copying onscreen and don't overwite anything. You can omit them if you wish.
Old 02-21-2009, 09:41 AM   #3
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

Original Poster
Rep: Reputation: 39
you were almost about 10-15 minutes of trying different commands but eventually got it o work...

strat@frostbite:~/GSCW/Drum_Kit-1$ cp   */*.wav  /home/strat/Bohnam_kit/


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
Copying Multiple Files babu198649 Linux - Newbie 2 01-23-2009 07:43 AM
tar multiple folders and files at once sinister1 Linux - General 4 12-10-2007 02:49 AM
Rename multiple files in folders??? adds2one Linux - Software 19 10-05-2006 12:22 AM
Copying files from multiple folders into one aardwolf64 Linux - General 4 01-02-2006 11:53 PM
copying multiple files..??? krazykow Linux - Enterprise 6 09-09-2004 01:05 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:42 AM.

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