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

Startseite
Anhänge:
Nachricht
+ (text/plain)
Nachricht löschen
Nachricht beantworten
Autor: John (EBo) David
Datum:  
Betreff: oops... to many files and can't clean up...
"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 --