[6744] 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 (Borg)
Fri Nov 29 23:21:02 1996

Date: Fri, 29 Nov 1996 19:19:35 -0800
From: Borg <vladimip@iceonline.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Dave Wreski wrote:
........
.....
> find . -name core -exec rm {} \; -print

My "rm" is aliased to "rm -i" in one of my shell startup
files. The above command ignores aliasing and unconditionally
removes anything matching "-name xxx". Why?

Yes, I know I can also do "-ok" instead of "-exec", like:

touch aaa.summary
[vlad@borg /vlad]$ find . -name *.summary -ok rm {} \; -print
< rm ... ./aaa.summary > ? y
./aaa.summary

however, my "rm" aliases should be honoured by "find", shouldn't
they? 

Vlad (confused) Petersen

-- 
#include <disclaimer.h>  |   *Good pings come in small packets*
     Vlad Petersen       |     Linux: multiuser, multitasking,
     Vancouver, B.C      |     multiplatform, 64-bit and free.
vladimip @ iceonline.com | Ceterum censeo Microsoftam delendam esse


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