[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] D�vida_com_sed_(talvez?)
From: |
Aurelio Marinho Jargas |
Subject: |
Re: [shell-script] Dúvida_com_sed_(talvez?) |
Date: |
Thu, 30 Oct 2003 17:59:55 -0300 (ART) |
oi andré,
--- André_Luiz_Alves_da_Silva_Prates <address@hidden>
> 00000600536758500000000000000041
> 00000600536758500000000000000041
> 00000600677687000000000000000048
> 00000600677687000000000000000048
>
> Se não for pedir muito, queria a saida assim:
> 41
> 48
pra pegar só os dois último chars:
sed 's/.*\(..\)$/\1/'
pra eliminar as repetições:
uniq
junta os dois comandos com um pipe | e tá feito :)
falou!
=====
--
Aurelio Marinho Jargas - De volta para Curitiba & Conectiva
Apostila de Shell a venda http://aurelio.net/shell/apostila
Ser tosco eh... http://aurelio.net/fotos
Yahoo! Mail - o melhor webmail do Brasil
http://mail.yahoo.com.br