[bash] copy files from one directory into an existing directory?
-
In bash I need to do this: 1. take all files in a directory 2. copy them into an existing directory How do I do this? I tried cp -r t1 t2 (both t1 and t2 are existing directories, t1 has files in it) but it created a directory called t1 inside t2, I don't want that, I need the files in t1 to go directly inside t2. How do I do this?
-
Answer:
cp -v t1/* t2
Yahoo! Answers Visit the source
Related Q & A:
- How do I loop through many files in one folder?Best solution by thespreadsheetguru.com
- How to list all text files in a directory?Best solution by Stack Overflow
- How to write temporary files from temporary path to a temporary directory?Best solution by msdn.microsoft.com
- How to move all music files into one folder?Best solution by stackoverflow.com
- How to copy files n folders from both internal n external hard disks to DVD+R discs storage?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.