Kevin Wampler <wam### [at] u washington edu> wrote:
> I have a directory which (I think) has many many small files in it. I'd
> like to remove these files, however every attempt I've tried fails. For
> example:
> cd <dir>; rm *
> rm -r <dir>
> ls <dir>
> find <dir>
A webpage suggests this:
find <dir> -exec rm {} \;
(I think that the idea is that this executes the 'rm' command individually
on each file as it traverses the directory, rather than first gathering all
the file names into RAM and then trying to do something to them.)
--
- Warp
Post a reply to this message
|