rmdir when directory is not empty

Tony Nelson tonynelson at georgeanelson.com
Fri Dec 23 17:12:26 UTC 2005


At 4:13 PM -0800 12/22/05, jdow wrote:
>From: "Tony Nelson" <tonynelson at georgeanelson.com>
>
>> At 1:42 PM -0600 12/22/05, Mike McCarty wrote:
>> ...
>>>Being myself a great RTFM advocate, as well as a "learn how to use
>>>the tools" advocate, here's how I would have done the search you needed.
>>>
>>>$ apropos remove
>>>[great honkin' long list too difficult to see, even with less]
>>>$ apropos remove | grep file
>
>Of course you could prune further:
>apropos remove|grep file|grep \(1\)
>
>But I think I'm getting silly again.
>
>{^_-}

Just to note, I didn't write any of the quoted text.  What I wrote:

>Plug:  <http://georgeanelson.com/apropos2.htm>

Using apropos2 makes grep "silliness" unnecessary.  One can say:

    apropos remove file

and get only the entries with both "remove" and "file", rather than the
original apropos behavior of all the entries with "remove" and then all the
entries with "file".  One can also say:

    apropos remove file 1

which is a bit sloppy in that it will allow a "1" anywhere, but seems good
enough for the purpose.  (I don't usually specify the section as sometimes
the answer I need is in, say, section 8.)

Apropos2 could be made part of the standard man distribution if enough
people used it and commented favorably on it to the man package maintainer.
It could even be packaged for Fedora Extras if a FE packager wants to do it.
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson at georgeanelson.com>
      '                              <http://www.georgeanelson.com/>




More information about the users mailing list