LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 08: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, 08: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, 09: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:17 PM.

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
Open Source Consulting | Domain Registration