shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] apagar arquivos


From: CyberCrow
Subject: Re: [shell-script] apagar arquivos
Date: Thu, 05 Oct 2006 10:37:38 -0300
User-agent: Thunderbird 1.5.0.5 (X11/20060719)

Mais simples que isso. Você poderia usar o seu comando inicial e só
acrestentar uma simples "\" e trocas "a*" por 'a\*'.


find /root/br  -type d -iname 'a\*' -exec rm -r {} \;

-- 
======================================
                  CyberCrow
        Conhecimento é Poder !

  Quando voce perde a mente limitada
       Voce liberta a sua vida

  http://cybercrow.blogspot.com
======================================

 -----BEGIN GEEK CODE BLOCK-----
  Version: 3.12
  GCM/L/U d- s-: a- C++ LSU++++ P+ L+++ E--- W++ N w--
  O-- M- V- PS PE- Y PGP++ t 5 X++ R tv- b++ DI D+
  G++ e- h* r y+
 -------END GEEK CODE BLOCK------




Celso Viana wrote:
> Em 05/10/06, Herbert Alexander Faleiros <address@hidden>
> escreveu:
> >
> >    On Thursday 05 October 2006 00:52, Flavio Junior wrote:
> >  > o find tenta entrar nele para continuar sua busca
> >
> >  Se quiser pode usar o xargs (livre desse problema):
> >  $ find /root/br -type d -iname 'a*' | xargs rm -Rf {}
> >  
>
> Usei o comando...
>
> xor# find /teste -type f -iname "*.txt" | xargs -p rm -Rf {}
>
> ...e recebi a mensagem.
>
> xargs: unterminated quote
>
> O que aconteceu?
>
> -- 
> Celso Vianna
> BSD User: 51318
> http://www.bsdcounter.org
>
> 63 8404-8559
> Palmas/TO
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]