Date: 29 Dec 2001 11:17:40 -0600 From: James McNaughton <jtm63@enteract.com> To: David Kirchner <davidk@accretivetg.com> Cc: Drew Tomlinson <drew@mykitchentable.net>, <questions@FreeBSD.ORG> Subject: Re: How to Use Find To Remove Files? Message-ID: <86n102kksr.fsf@jamestown.21stcentury.net> In-Reply-To: <20011206151756.D15780-100000@localhost> References: <20011206151756.D15780-100000@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
David Kirchner <davidk@accretivetg.com> writes:
> On Thu, 6 Dec 2001, Drew Tomlinson wrote:
>
> > 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?
>
> find . -name "CVS" -delete
>
> works on FreeBSD's find.
>
But if he wants confirmation with the -ok primary then
find . -name CVS -ok rm \{\} \;
is the one to use.
The original problem is that the final ; is a special character for
the shell and must be escaped by prepending it with a "\".
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
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?86n102kksr.fsf>
