Try this command
find . -name core -exec rm {} \; -print
All the best and dont blame me if everything disappears and your machine
crashes and all hell turns loose:-)))
Shafi
Shantaram Sahyadri wrote:
> Hello to all,
> this small thing is killing me!!!
>
> man page of "find" says you can use "-exec" or "-ok"
> to execute any command from the result of find
> command, using this, consider I want to find and
> delete all "core" files I will use the command
>
> #find / -name core -print -exec rm{} ;
>
> or
>
> #find / -name core -print -ok rm {} ;
>
> but this does not work, I get a error msg saying no
> arguments specifed for -exec or -ok, I know this is
> silly but I want to find out the reason why is this
> not woking, is it fault of the program or my fault ie
> the way cmd is given,
> thankx
> Sahyadri
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
> ----------------------------------------------
> An alpha version of a web based tool to manage
> your subscription with this mailing list is at
> http://lists.linux-india.org/cgi-bin/mj_wwwusr
----------------------------------------------
LIH is all for free speech. But it was created
for a purpose. Violations of the rules of
this list will result in stern action.