[6737] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Using "find" to get rid of cores etc.

daemon@ATHENA.MIT.EDU (Dave Wreski)
Fri Nov 29 21:22:10 1996

Date: Fri, 29 Nov 1996 21:21:05 -0500 (EST)
From: Dave Wreski <tel1dvw@is.ups.com>
To: Studentid <unixa014@athena.bcit.bc.ca>
Cc: RedHat List <redhat-list@redhat.com>
In-Reply-To: <329F704E.2DDB247D@athena.bcit.bc.ca>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com


On Fri, 29 Nov 1996, Studentid wrote:

> main$ find ./ -name core -exec rm
> find: missing argument to `-exec'
> main$ find ./ -name core -exec rm {}
> find: missing argument to `-exec'
> main$ find ./ -name core -exec rm {core}
> find: missing argument to `-exec'
> main$ find ./ -name core -exec rm core {}
> find: missing argument to `-exec'
> main$ find ./  -exec rm -rf core {}
> find: missing argument to `-exec'
> main$ find ./  -exec rm  core {}
> find: missing argument to `-exec'
> main$ find ./ -name core -exec "rm core"
> find: missing argument to `-exec'
> main$ find ./ -name core -exec "rm core" {}
> find: missing argument to `-exec'

Hehe.. It was a valiant attempt.. :)

find . -name core -exec rm {} \; -print

Dave


-----------------------------------------------------------------------
"The opinions expressed here are my own and do not represent the views
or opinions of United Parcel Service, Inc."
-----------------------------------------------------------------------
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sb20293A2058554E494Csnlbxq'|dc


--
  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


home help back first fref pref prev next nref lref last post