![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
|||
|
|||
|
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.
|
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|