October 16th, 2003, 02:40 AM
problems with "cp" (reliant unix 5.43)
I've got a problem with the copy - command (reliant unix 5.43). It appears to me rather difficult to copy large amount of data. A command like "cp *.jpg" is simply refused. Does anybody know something about such a kind of restriction? Something like ... only 256 files could be copied at once. Perhaps it stays in relation with the file-system. It still appears strange to me ...
Thanks in advance!
October 16th, 2003, 01:31 PM
Probably a problem with the maximum length of the command line arguments.
"*" is expanded by the shell, not read by cp, so it has to pass all filenames on a single line.
Try something like this:
for i in *.jpg; do cp "$i" /destdir/; done
October 17th, 2003, 01:36 AM
Much thanks for your comment. I'll check it out immediately. At the first glance your suggestion appears to be very helpful ... Thanks again! Bye Sysadv