LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 02-21-2009, 09:05 AM   #1
stratotak
Member
 
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..

Code:
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, 09:17 AM   #2
catweasel28
Member
 
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, 10:41 AM   #3
stratotak
Member
 
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

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

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


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


All times are GMT -5. The time now is 07:30 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration