The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Development Releases: Linux Mint 4.0 Beta "Fluxbox", 4.0 Alpha "Debian" iBot UNIX and Linux RSS News 0 01-04-2008 12:00 PM
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-19-2007 10:52 PM
Unix "at" / "Cron" Command New Problem...Need help Mohanraj UNIX for Dummies Questions & Answers 3 01-26-2006 05:08 PM
Commands on Digital Unix equivalent to for "top" and "sar" on other Unix flavour sameerdes UNIX for Advanced & Expert Users 1 08-28-2002 05:41 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-15-2003
Registered User
 

Join Date: Oct 2003
Posts: 7
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
Forum Sponsor
  #2  
Old 10-16-2003
davidg's Avatar
Registered User
 

Join Date: Jul 2003
Location: Holland
Posts: 207
Hi sysadv,

This is a normal behaviour. The * gets resolved as arguments before the command is interpeted. So therefor (you'll probably have lots of jpg-files) the cp errors of; too many arguments.

Another remark is to not use the . This is something Windows alike. A dot in Unix has a different meaning, therefor I would suggest to try the following :

for i in `ls *jpg`
do
cp $i <dest-dir>
echo "Copy of $i was succesfull"
done

If this also does not work than do a man on "xargs"!! This can be your only solution then. I don't know the exact syntax, but man does

Regs David
  #3  
Old 10-16-2003
Registered User
 

Join Date: Oct 2003
Posts: 7
Much thanks for your comment. I'll take a look in the man - pages ...

Bye sysadv
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:57 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0