The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-08-2005
JimJim JimJim is offline
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
  #2 (permalink)  
Old 02-08-2005
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,119
something to be improved on:
(cd $SOURCE && tar cf - . ) | (cd $TARGET && tar xvfp -)
  #3 (permalink)  
Old 02-08-2005
jyoung jyoung is offline
Registered User
  
 

Join Date: Nov 2001
Location: Flint, MI
Posts: 227
Maybe this link will help:
xargs problem
  #4 (permalink)  
Old 02-08-2005
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
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
  #5 (permalink)  
Old 02-08-2005
thumsup9 thumsup9 is offline
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 07:20 PM..
Sponsored Links
Closed Thread

Bookmarks

Tags
cpio

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0