Em Fri, 4 Jul 2008 21:24:37 -0300
"Rodrigo Escobar" <[EMAIL PROTECTED]> escreveu:

> Opa.. cheguei agora aqui..
> 
> hehehe eh facinho brother..
> vamos la..
> 

Com algumas modificações, funcionou para valores numéricos. Lá vai a
versão final:

#!/bin/sh
# [EMAIL PROTECTED], [EMAIL PROTECTED]

arquivo="teste.txt"           # NOME DO ARQUIVO
tamanho_final="9"             # VALOR MAXIMO DENTRO DO ARQUIVO

for ((tamanho_inicial = 1; tamanho_inicial < $[tamanho_final + 1];
tamanho_inicial++)) do
   cat $arquivo |awk '/'$tamanho_inicial'.*'$tamanho_inicial'/' >>
resultado done
    
cat resultado |sort|uniq

[...]

> Posta ai pra gente se vc tem numeros maiores que 9 que tentaremos
> achar uma outra solucao..

É pior ainda, são códigos alfanuméricos referentes a arquivos com
imagens.

Vou testar outras dicas e aviso quando tiver resultados.

Grato a todos,

--
Gunther Furtado
[EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Responder a