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

Página superior
Adjuntos:
Obtener este mensaje como un correo
+ (text/plain)
Eliminar este mensaje
Responder a este mensaje
Autor: John (EBo) David
Fecha:  
Asunto: 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 --