Victor Shnayder <[EMAIL PROTECTED]> wrote: 

> [EMAIL PROTECTED] wrote:
> > 
> > I have managed to runout of inodes on a partition du to a buggy routine.
> > 
> > I know what I want to delete, but when I do rm -f * in the problem
> > directory it comes back with "Argument list too long"
> > 
> > Can anyone think of a way around this one?
> 
> Either use xargs (man xargs), or just do rm -f a*;rm -f b*;rm -f
> c*......

Hm.  I guess this is supposed to work then? 

  ls | xargs rm

For some reason, the function of xargs will not sink into my
head... I suspect that it's man page is a good argument
against man pages in general, but I have to understand what
it does better before I can tell if I'm just being thick. 

Anyway, this would also do it: 

  cd <problem_area>
  find . -type f -exec rm {} \;

Note, this deletes all files recursively below the problem location.
If that's not the Right Thing, I guess you'd need to play
with something like the -maxdepth option.





_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to