Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
The parameter list is too long
Name: roger Date: August 1, 2002 at 15:01:39 Pacific
Comment:
I want to perform a simple rm command on all the files (#600) in a particular directory. When I try rm * I get the error: The parameter list is too long. I've tried to use xargs -n10000 rm but now my PC is is just sitting there blinking at me. Help?
Name: Frank Date: August 1, 2002 at 23:47:01 Pacific
Reply:
Hi,
try find . -perm 600 -exec rm {} \;
if this not work try for i in * ; do rm $i done
No RISK no fun Frank
0
Response Number 2
Name: joe Date: August 2, 2002 at 09:38:41 Pacific
Reply:
or ...... use xargs
0
Response Number 3
Name: joe Date: August 2, 2002 at 09:43:03 Pacific
Reply:
I guess an example would be helpful .. : )
A typical usage is to remove a long list of filenames in a directory with rm *, and it fails with "parameter list is too long" ... so, try the following:
echo *|xargs rm
0
Response Number 4
Name: roger Date: August 2, 2002 at 16:06:24 Pacific
Summary: I have a problem with the command : tar cvf - `ls | grep -v "TAR" | grep -v "DMP" | xargs`| compress -c > file.Z error 0403-027 the parameter list is too long There is more on thousand files in the di...
Summary: Hi Buddies, I tried to tar files from a directory to a tape device. The directory has more than 1000 files and I got the error message for parameter list is too long The script is as follows : su - e...
Summary: Hi folks, I face a strange problem.I have a make file that builds my exe .My exe is built by linking many libraires(.a).when ever this list of .a files increases i get parameter list is too long.Can a...