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

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

Re: [shell-script] pegar quantidade de ips diferentes versao-2...


From: Marcelo
Subject: Re: [shell-script] pegar quantidade de ips diferentes versao-2...
Date: Thu, 29 Oct 2009 11:21:16 -0200
User-agent: Thunderbird 2.0.0.23 (X11/20090812)

Srs,

Muito Obrigado!

Abraços,
Marcelo

Tiago Peczenyj wrote:
>  
>
> Tem,
>
> utilizando alguma ferramenta que tenha suporte a comparação matemática
> como
> awk
>
> comandos | awk '$1 > 100{print}'
>
> ou seguir um padrão textual de numeros maiores que 100 (inclusive)
>
> comandos | sed -nr '/^\s*[1-9][0-9]{2,}/p'
>
> 2009/10/29 Marcelo <address@hidden <mailto:marcelo%40fm.usp.br>>
>
> >
> >
> > Srs,
> >
> > No exemplo abaixo usando a mesma linha:
> > grep SRC text|cut -f1 -d" "|sed 's/SRC=//g'|sort |uniq -c
> > tem como somente listar o resultado do ip que contem o numero maior que
> > 100?
> > listaria somente o
> > 209 192.168.113.28
> >
> > Desde já agradeço...
> > Marcelo
> >
> > Waldirio Manhães Pinheiro wrote:
> > >
> > >
> > > Bom dia Marcelo
> > >
> > > Segue a dica :)
> > >
> > > jeju:[xxxx] > grep SRC text|cut -f1 -d" "|sed 's/SRC=//g'|sort
> |uniq -c
> > > 89 192.168.113.12
> > > 98 192.168.113.14
> > > 209 192.168.113.28
> > >
> > > O arquivo text contem a listagem postada abaixo por voce.
> > >
> > > []'s e Sorte
> > > Waldirio
> > >
> >
> > ----------------------------------------------------------
> > Esta mensagem pode conter informacao confidencial.
> > Se voce nao for o destinatario ou a pessoa autorizada a receber
> > esta mensagem, nao podera usar, copiar ou divulgar as informacoes nela
> > contidas ou tomar qualquer acao baseada nessas informacoes. Se
> > voce recebeu esta mensagem por engano, favor avisar imediatamente o
> > remetente, respondendo o e-mail e, em seguida, apague-o.
> > Agradecemos sua cooperacao.
> >
> > This message may contain confidential information.
> > If you are not the addressee or authorized person to receive it for the
> > addressee, you must not use, copy, disclose or take any action based on
> > this message or any information herein. If you have received this
> message
> > in error, please advise the sender immediately by replying this e-mail
> > message and delete it.
> > Thanks in advance for your cooperation.
> > ----------------------------------------------------------
> > Faculdade de Medicina USP
> > ----------------------------------------------------------
> >
> >
> >
>
> -- 
> Tiago B. Peczenyj
> Linux User #405772
>
> http://pacman.blog.br <http://pacman.blog.br>
>
> [As partes desta mensagem que não continham texto foram removidas]
>
> 

---------------------------------------------------------------------
Esta mensagem pode conter informacao confidencial.
Se voce nao for o destinatario ou a pessoa autorizada a receber
esta mensagem, nao podera usar, copiar ou divulgar as informacoes nela
contidas ou tomar qualquer acao baseada nessas informacoes. Se
voce recebeu esta mensagem por engano, favor avisar imediatamente o
remetente, respondendo o e-mail e, em seguida, apague-o.
Agradecemos sua cooperacao.

This message may contain confidential information.
If you are not the addressee or authorized person to receive it for the
addressee, you must not use, copy, disclose or take any action based on
this message or any information herein. If you have received this message
in error, please advise the sender immediately by replying this e-mail 
message and delete it.
Thanks in advance for your cooperation.
----------------------------------------------------------------------
                  Faculdade de Medicina USP
----------------------------------------------------------------------



reply via email to

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