[6724] in RedHat Linux List
Re: Using "find" to get rid of cores etc.
daemon@ATHENA.MIT.EDU (D. Brian Kimmel)
Fri Nov 29 19:52:44 1996
To: redhat-list@redhat.com
cc: briank@alki.kimbro.com
In-reply-to: Your message of "Fri, 29 Nov 1996 15:22:54 PST."
<329F704E.2DDB247D@athena.bcit.bc.ca>
Date: Fri, 29 Nov 1996 16:51:37 -0800
From: "D. Brian Kimmel" <briank@alki.kimbro.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
> I've been trying to get rid of all cores in my home directory
> which also contains about 100 sub- and subsub-directories
> using find command:
>
> main$ cd
> main$ find ./ -name core -exec rm
> find: missing argument to `-exec'
> main$ find ./ -name core -exec rm {}
> find: missing argument to `-exec'
Almost - the correct syntax is
find . -name core -exec rm {} \;
the part you were missing is the escaped ";" at the end to terminate
the -exec option to find.
Brian
--
D. Brian Kimmel Kimbro, Inc. Voice: (206) 937-8381
Seattle, WA USA http://www.kimbro.com briank@kimbro.com
Commercial Internet Services briank@bb.net http://www.bb.net
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null