Re: [FUG-BR] Res: Re: apagar arquivos

2006-03-16 Por tôpico Renato Botelho
On 3/15/06, Ademir Costa Peixoto [EMAIL PROTECTED] wrote: Deu isso: for i in *Milionarios*; do rm -f $i; done for: No match. i: Undefined variable. Se vc quer apagar arquivos que contenham uma determinada string dentro dele: grep -l STRING * | xargs rm -f -- Renato Botelho

Re: [FUG-BR] Res: Re: apagar arquivos

2006-03-15 Por tôpico Ronan Lucio
Ademir, for ARQUIVO in `grep --files-with-matches Milionario *` ; do rm -f $ARQUIVO ; done Tenta assim: for ARQUIVO in `ls Milionario*`; do rm -f $ARQUIVO; done []s Ronan ___ freebsd mailing list freebsd@fug.com.br