🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #60363

Re: using fastrm to remove a directory

#60363
From: Kjetil Torgrim Homme
Date: Thu, 12 Sep 2002 16:35
15 lines
1576 bytes
[Russ Allbery]:
>
>   I'd just put all the directories in a file and then pipe that file
>   into xargs rmdir.

use
  find . -type d -print | sort -r | xargs rmdir
                          ^^^^^^^
so that the subdirectories are removed first.

-- 
Kjetil T.   ==. ,,==. ,,==. ,,==. ,,==. ,,==
           ::://:::://:::://:::://:::://::::
           =='' `=='' `=='' `=='' `=='' `==  http://folding.stanford.edu
Technical Details
Message-ID: <1rn0qn6u9r.fsf@fjorir.ifi.uio.no>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!news.teledanmark.no!uninett.no!news-feed.ifi.uio.no!ifi.uio.no!not-for-mail
References: <61a97519.0209120651.23053c4d@posting.google.com> <yld6rjs0sk.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <1rn0qn6u9r.fsf@fjorir.ifi.uio.no>
Subject: Re: using fastrm to remove a directory
Date: Thu, 12 Sep 2002 16:35:12 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
References: <61a97519.0209120651.23053c4d@posting.google.com> <yld6rjs0sk.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!news.teledanmark.no!uninett.no!news-feed.ifi.uio.no!ifi.uio.no!not-for-mail
Newsgroups: news.software.nntp
Organization: Dept. of Informatics, Univ. of Oslo, Norway
Lines: 14
NNTP-Posting-Host: fjorir.ifi.uio.no
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: maud.ifi.uio.no 1031848512 12759 129.240.66.164 (12 Sep 2002 16:35:12 GMT)
X-Complaints-To: abuse@ifi.uio.no
NNTP-Posting-Date: 12 Sep 2002 16:35:12 GMT
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7