|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
problems with "cp" (reliant unix 5.43)
Hi,
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! sysadv |
|
#2
|
|||
|
|||
|
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: Code:
for i in *.jpg; do cp "$i" /destdir/; done hth, M.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
|||
|
|||
|
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
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > problems with "cp" (reliant unix 5.43) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|