[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: is there a way to use find and rm together?



on Tue, Mar 13, 2001 at 10:44:18PM +0100, Martin Würtele (martin@wuertele.cc) wrote:
> hi,
> 
> we have ftp users in home/ftpusers and we disabled shell acces for them.
> now we have .bash* files in every user directory under /home/ftpusers.
> 
> is there a way to use something like 
> find /home/ftpusers -name .bash* | rm

Several options:

    $ find /home/ftpusers -name .bash\* | xargs rm
    $ find /home/ftpusers -name .bash\* -ok rm {} \;

...the latter asks for confirmation before each deletion.

-- 
Karsten M. Self <kmself@ix.netcom.com>    http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?       There is no K5 cabal
  http://gestalt-system.sourceforge.net/         http://www.kuro5hin.org

Attachment: pgpPjd4XRtIZj.pgp
Description: PGP signature


Reply to: