[6720] in RedHat Linux List

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

Using "find" to get rid of cores etc.

daemon@ATHENA.MIT.EDU (Studentid)
Fri Nov 29 19:24:13 1996

Date: Fri, 29 Nov 1996 15:22:54 -0800
From: Studentid <unixa014@athena.bcit.bc.ca>
To: redhat-list@redhat.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'
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'
main$ 

Nothing works. I checked find man page and failed to understand
how. Help anyone? Redhat archive search isn't working.  :( I have
at least 100 cores sitting all over the place.


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