Re: Help: Arg list too long Problem



On 2008-07-05, Ignoramus3578 wrote:
The best solution to delete all .poop files in a directory is

find /my/directory -name \*.poop -exec rm {} \;

Better still, with a recent version of find:

find /my/directory -maxdepth 1 -name \*.poop -exec rm {} +


On 2008-07-04, Amy Lee <openlinuxsource@xxxxxxxxx> wrote:
Hello,

While I'm deleting about 9000 files in a directory, the rm command shows
that error message:

Arg list too long.

Could you tell me how to solve this kind of problem?

Thank you very much~

Regards,

Amy Lee



--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
.



Relevant Pages

  • Re: Help: Arg list too long Problem
    ... On 2008-07-04, Amy Lee wrote: ... While I'm deleting about 9000 files in a directory, the rm command shows ... that error message: ...
    (comp.os.linux.misc)
  • RE: win error
    ... Have you tried deleting the Foxuser.dbf and Foxuser.fpt file? ... Does the error occur in the development environment? ... in the command button to see what line causes the error. ... >close button the error message is not displayed. ...
    (microsoft.public.fox.helpwanted)
  • Re: Help: Arg list too long Problem
    ... While I'm deleting about 9000 files in a directory, the rm command ... shows that error message: ... printf "%s\n" * | xargs rm ...
    (comp.os.linux.misc)
  • Help: Arg list too long Problem
    ... While I'm deleting about 9000 files in a directory, the rm command shows ... that error message: ... Amy Lee ...
    (comp.os.linux.misc)
  • Re: Display Problems
    ... If it shows up in the GUI, it is there, and must be present ... Or issue the command; ... > and got the error message file or folder not found. ... in the midst of the frustration, by all means, vent away. ...
    (alt.os.linux.suse)