The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Arg List too Long in SCP chris1234 UNIX for Dummies Questions & Answers 5 02-27-2008 05:40 AM
ls -t arg list too long CSU_Ram UNIX for Dummies Questions & Answers 4 05-05-2005 07:19 AM
arg list too long encrypted UNIX for Advanced & Expert Users 8 11-12-2004 03:38 AM
command find returned bash: /usr/bin/find: Argument list too long yacsil Shell Programming and Scripting 1 12-15-2003 03:38 PM
arg list too long vingupta UNIX for Dummies Questions & Answers 5 08-02-2001 08:43 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 03-03-2006
Registered User
 

Join Date: Feb 2006
Posts: 61
the 'ls' command fails with the same error too???? that's pretty bizarre. i would go with hegemaro's suggestion of generating a file list.
Reply With Quote
Forum Sponsor
  #9  
Old 03-03-2006
Registered User
 

Join Date: Mar 2006
Posts: 4
For the call to tar, I think I will.

The problem shows up in areas where we would not have expected it.

Try removing 5000 files that match *.old
rm *.old fails.

Or try moving 5000 files that match *.dat

I've had to resort to multiple pipes to get the job done that should work with a single command.

ls | grep dat$ |awk '{ print "mv " $0 " /home/mydir/dat_files" }' | sh

is a long way around what should be:
mv *.dat /home/mydir/dat_files

And I'll bet it isn't as efficient.

Production scripts that have worked for years are now failing due to reaching that magic number of files.

I just wish there were a global solution - like setting a system parameter - that would solve it.

Oh well -

Thank you all for your suggestions.

Rick - aka dad5119
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:39 PM.


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