|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Hi, I'm trying to copy multiple items with unique names from one remote location to another. I'm wondering if this is possible using cp (or something else)?
Here's what i'm trying to do - i've got these files, one called cat. jpg, another called dog.jpg and another called hamster.jpg, and i want to copy all of them to another directory using just one line instead of three. Any ideas? Thanx. AN |
|
#2
|
|||
|
|||
|
cp *.jpg ~/
This will copy all the .jpg files in the current directory to your home folder. If you only want to copy cat.jpg, dog.jpg, and hamster.jpg then you can use: cp cat.jpg ~/ | cp dog.jpg ~/ | cp hamster.jpg ~/ Which technically is one line but still a pain. Last edited by Locke : May 1st, 2004 at 10:56 AM. |
|
#3
|
|||
|
|||
|
alternatively -
$ cp cat.jpg ~/ ; cp dog.jpg ~/ ; cp hamster.jpg ~/ |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > copy mulitple items with unique names |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|