problem with `find -delete`

Alexander Best alexbestms at
Wed Feb 10 12:34:10 UTC 2010

thanks. but i moved away from using ports-mgtm/portupgrade so i don't really
want to use portsclean, but use something else.

i thought `find` should to be able to accomplish the job. maybe this is a bug
in find? because actually the `find` command i'm using should work.


Jason schrieb am 2010-02-10:
> On Wed, Feb 10, 2010 at 02:51:52AM +0100, Alexander Best thus spake:
> >hi there,

> >i've been trying to delete all the works directories in my ports
> >dir. this is
> >the command i'm trying to use:

> >sudo /usr/bin/find /usr/ports -name work -depth 3 -type d -delete

> >after i issue the command however

> >sudo /usr/bin/find /usr/ports -name work -depth 3 -type d

> >tells me that nothing got deleted at all. is there something wrong
> >with that
> >command?

> >cheers.
> >alex

> You may want to try looking here:

> Section 4.5.5

> >_______________________________________________
> >freebsd-questions at mailing list
> >
> >To unsubscribe, send any mail to
> >"freebsd-questions-unsubscribe at"

> --
> Jason Helfman
> System Administrator

More information about the freebsd-questions mailing list