LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Copying Multiple Files (https://www.linuxquestions.org/questions/linux-newbie-8/copying-multiple-files-699345/)

babu198649 01-23-2009 07:12 AM

Copying Multiple Files
 
Hi
I want to copy some of the files in a directory to another directory.The files don't have any pattern.Is it possible to give multiple sources for the cp command,So that in a single command all the files given as argument in the source field will be copied.

mrclisdue 01-23-2009 07:16 AM

Indeed:

Code:

cp /path_to_file1 /path_to_file2 /path_to_file(n) /etc <destination>
I hope this is what you were looking for....


cheers,

babu198649 01-23-2009 07:43 AM

Thanks ,
I misunderstood the man page of cp.I thought that SOURCE meant a single file.


All times are GMT -5. The time now is 07:31 PM.