I have been trying to complete a "cp" (copy) command (with a * wild card) on RH 6.1 for the last week. I confirm my current directory (by pwd) to make sure I am in the (sub)directory that holds the files I want to copy. I also check the receiving device and directory (to make sure it is there (properly mounted) and ready to receive the files). I am trying to copy over 3500 files from "/abc/work" to another "/mnt/jaz" so copying them one at a time isn't an answer. I don't need all the files in the /abc/work directory so copying the whole subdirectory is not an option either.
My string looks like
cp -v /abc/work/*.filename /mnt/jaz/directoryname
So, copy (verbose so I can see what is going on, IF something happens) (from) /abc/work/(all the file names that end the same way) to (my jaz drive that is mounted in the /mnt/jaz sub-directory) into the "directoryname" directory" with the orginal filenames
I have looked the command up in several books and the "man" pages to make sure I am writing the command properly. I have shown it to several other Linux users. So far I can't seem to figure out what I am doing wrong.
I HAVE been able to copy the files one at a time, using the whole path & file name.
Any ideas?
|