Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2001 07:47:22 -0700
From:      Peter Wemm <peter@wemm.org>
To:        joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: rm -rf question 
Message-ID:  <20010524144722.35AE2380C@overcee.netplex.com.au>
In-Reply-To: <200105240840.f4O8ekT07049@uriah.heep.sax.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
J Wunsch wrote:
> Alexander Langer <alex@big.endian.de> wrote:
> 
> > It's xargs job to workaround that:
> > 
> > ls | xargs rm -rf 
> 
> rm -rf /home/gary/public_html/mrtg/david
> 
> should have worked as well.  It also removes the directory itself,
> yes, but since it's then rm(1) that does the directory handling,
> there's no longer a limitation in the arg list that applies.

Incidently, "find /home/gary/public_html/mrtg/david -delete" would have
worked as well, and would not have deleted the top directory.

Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010524144722.35AE2380C>