From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10090 invoked from network); 20 Dec 1999 15:59:46 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 20 Dec 1999 15:59:46 -0000 Received: (qmail 1638 invoked by alias); 20 Dec 1999 15:59:30 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2786 Received: (qmail 1631 invoked from network); 20 Dec 1999 15:59:29 -0000 Message-ID: <385E5590.59255EAA@ie.oracle.com> Date: Mon, 20 Dec 1999 16:13:04 +0000 From: Pascal Byrne Organization: Oracle X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: Claus Alboege CC: zsh-users@sunsite.auc.dk Subject: Re: rm -r References: <385E4BD6.7835A11@kom.auc.dk> Content-Type: multipart/mixed; boundary="------------E4815821A01B562C763060FB" This is a multi-part message in MIME format. --------------E4815821A01B562C763060FB Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit *.o is interpreted by zsh as: expand all the filnames in the current directory matching '*.o' and the pass these as arguments to 'rm' which isn't what you want (try pressing to see the expansion). If there are a small number of files try: rm -f **/*.o or if the expansion will result in more file names than can be passed on the command line: find . -name '*.o' | xargs rm -f -pascal Claus Alboege wrote: > Hi, > > Could anyone tell me a way to make the following work from a z-shell: > > rm -rf *.o (this dosn't work) > > What I want is to remove all .o files recursive , but the "-r switch" in > the above isn't a correct way to do it. > > -- > Claus Alboege --------------E4815821A01B562C763060FB Content-Type: text/x-vcard; charset=us-ascii; name="pbyrne.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Pascal Byrne Content-Disposition: attachment; filename="pbyrne.vcf" begin:vcard n:Byrne;Pascal tel;fax:353 1 8039101 tel;work:353 1 8039066 x-mozilla-html:FALSE org:Oracle;WPTG version:2.1 email;internet:pbyrne@ie.oracle.com adr;quoted-printable:;;Block 3,=0D=0AEast Point business park,=0D=0ADublin 3.;;;;Ireland fn:Pascal Byrne end:vcard --------------E4815821A01B562C763060FB--