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

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: John (EBo) David
Date:  
Subject: 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 --