Go Back   The UNIX and Linux Forums > Operating Systems > Solaris
.
google site



Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-06-2007
Registered User
 

Join Date: Oct 2007
Posts: 134
move command

Hi,

I am using SOLARIS 9.

I am trying to move a huge number of files using the mv commands below-

#mv inbuffer/* /tmp/inbuffer/

but system says arguments too long..

Could u please tell which command i need to put for moving AND copying ???

Many Thanks in advance--
Purple
Sponsored Links
  #2 (permalink)  
Old 10-06-2007
Technorati Master
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 3,007
there is a system defined limit for the number of arguments used for each of the commands

you could try something like this


Code:
ls files* | while read file
do
mv "$file" ../otherdirectory/.
done

  #3 (permalink)  
Old 10-06-2007
Registered User
 

Join Date: Oct 2007
Posts: 134
re:move command not yet solved

Hi matrix,

movehugefiles not yet solve. I did the follwoing things..

#vi movehugefiles.sh

#!/usr/bin/sh
file=/home/hugefile/tmp/


ls /home/hugefile/tmp/* | while read file
do
mv "$file" /tmp/hugefile/
done

#./movehugefiles.sh
./movehugefiles.sh: /bin/ls: arg list too long
---------
  #4 (permalink)  
Old 10-06-2007
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100

Code:
find /home/hugefile/tmp/ -type f -print | xargs -I{} mv {} /tmp/hugefile

Cheers,
ZB
Sponsored Links
Closed Thread

Bookmarks

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 Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need help on move (mv) command jambesh Shell Programming and Scripting 2 04-26-2008 12:23 PM
Move command problem srivishnu_253 Shell Programming and Scripting 1 02-15-2008 06:46 PM
How to test whether a move command has been well executed Lutchumaya Shell Programming and Scripting 6 01-25-2007 02:56 AM
Move command return with exit code of 2 handak9 UNIX for Advanced & Expert Users 1 08-26-2004 06:40 AM
Help on MOVE command michelr UNIX for Dummies Questions & Answers 2 03-13-2001 11:50 AM



All times are GMT -4. The time now is 08:02 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-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0