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
Question concerning xargs cp27316 UNIX for Dummies Questions & Answers 4 03-13-2007 08:30 PM
xargs doubt shihabvk Shell Programming and Scripting 1 09-29-2005 07:38 AM
find | xargs cat asal_email Shell Programming and Scripting 4 03-16-2005 09:16 PM
xargs problem encrypted Shell Programming and Scripting 2 11-07-2004 03:04 PM
xargs jpprial UNIX for Dummies Questions & Answers 4 09-17-2001 05:29 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-08-2005
Registered User
 

Join Date: Nov 2004
Posts: 22
Smile Help with xargs

Hi there,

I am trying to move around 3000 files from one directory to another. The mv command is complaining from too many arguments. I tried to use the xargs command but with no luck. Could some body provide help?

Regards
Reply With Quote
Forum Sponsor
  #2  
Old 02-08-2005
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,014
something to be improved on:
(cd $SOURCE && tar cf - . ) | (cd $TARGET && tar xvfp -)
Reply With Quote
  #3  
Old 02-08-2005
Registered User
 

Join Date: Nov 2001
Location: Flint, MI
Posts: 186
Maybe this link will help:
xargs problem
Reply With Quote
  #4  
Old 02-08-2005
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
You could also take a look at this. Just read the tar and cpio sections in your case.....

Cheers
ZB
Reply With Quote
  #5  
Old 02-08-2005
Registered User
 

Join Date: Jan 2005
Posts: 97
Quote:
Originally Posted by JimJim
Hi there,

I am trying to move around 3000 files from one directory to another. The mv command is complaining from too many arguments. I tried to use the xargs command but with no luck. Could some body provide help?

Regards
I hope you dont have files greater than 2 gig size,in that case neither cpio nor tar works

If you want to copy the olddir directory hierarchy to newdir.

mkdir newdir
pax -rw olddir newdir

Last edited by thumsup9; 02-08-2005 at 04:20 PM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
cpio

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:05 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