Date: Thu, 6 Dec 2001 14:14:52 -0800 From: "Drew Tomlinson" <drew@mykitchentable.net> To: <questions@freebsd.org> Subject: How to Use Find To Remove Files? Message-ID: <000f01c17ea3$7bc9db40$962a6ba5@lc.ca.gov>
next in thread | raw e-mail | index | archive | help
I'm trying to learn to use the tools as intended. :) I have a directory tree of squirrelmail that I retrived via CVS. Because I only need a "snapshot", I want to delete all the CVS directories in the tree. I've used the command (find . -name "CVS" -print) from the top of the tree and it appears to find the files I want. Heres a snip: blacklamb# find . -name "CVS" -print ./CVS ./config/CVS ./data/CVS ./doc/CVS ./functions/CVS ./help/id/CVS ./help/ca/CVS ./help/cs/CVS ./help/th/CVS ./help/en/CVS [etc.] Now what I want to do is remove those files so I've tried (find . -name "CVS" -ok "rm {}";) and various versions of the command but can't get the syntax right. How should I construct this command? Thanks, Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000f01c17ea3$7bc9db40$962a6ba5>