🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by rayh Thu, 12 Sep 2002 14:51
using fastrm to remove a directory
#60368
Author: rayh
Date: Thu, 12 Sep 2002 14:51
5 lines
932 bytes
I have many(500k+) directories. Could someone supply me with a flag
for fastrm to remove a directory.

Thanks.
Re: using fastrm to remove a directory
#60362
Author: Russ Allbery
Date: Thu, 12 Sep 2002 15:08
16 lines
1531 bytes
rayh <whackencracker@yahoo.com> writes:

> I have many(500k+) directories. Could someone supply me with a flag
> for fastrm to remove a directory.

fastrm can't, I'm afraid.  It doesn't know anything about rmdir.

I'd just put all the directories in a file and then pipe that file into
xargs rmdir.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: using fastrm to remove a directory
#60363
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads