oops... to many files and can't clean up...

John (EBo) David plug-discuss@lists.plug.phoenix.az.us
Sat, 22 Jun 2002 12:23:22 -0700


"Robert A. Klahn" wrote:
> 
> ...
> find . -maxdepth 0 -name "<wildcard>" | xargs rm
> # or
> find . -maxdepth 0 -name "<wildcard>" -exec rm "{}" ";" # Slower

doh!  should have thought about find...  My biggest concern was roaching
the file system.  Used to be that you had a max number of files you
could put in  a single cylinder groub, but appearently that has changed.

did not know about the -maxdepth switch...  interesting.

another trick:

  find . -type f -exec rm {} \;

will also not remove directories but just files.

Thanks again...

  EBo --