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

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

Re: [shell-script] Ordenar por Matches


From: miranda
Subject: Re: [shell-script] Ordenar por Matches
Date: Thu, 17 Mar 2011 11:47:14 -0300

[miranda@guitar ~]$ cat xuh
permit ip host xx any (8179 matches)
permit ip host xx any (1326387 matches)
permit ip host xx any (14538 matches)
permit ip host xx any (110428 matches)
permit tcp host xx any (242840 matches)
permit tcp any host xx eq 3389 (92 matches)
[miranda@guitar ~]$ cat xuh|sort -t"(" -k2 -n
permit tcp any host xx eq 3389 (92 matches)
permit ip host xx any (8179 matches)
permit ip host xx any (14538 matches)
permit ip host xx any (110428 matches)
permit tcp host xx any (242840 matches)
permit ip host xx any (1326387 matches)

On Thu, 2011-03-17 at 11:27 -0300, Maiquel Consalter wrote:
>   
> Bom dia pessoal,
> preciso fazer com que as linhas (listadas a baixo) com maior matches,
> fiquem
> ordenadas de cima para baixo no shell. Tentei usar o sort, mas não
> tive
> sucesso,
> alguma dica.
> 
> permit ip host xx any (8179 matches)
> permit ip host xx any (1326387 matches)
> permit ip host xx any (14538 matches)
> permit ip host xx any (110428 matches)
> permit tcp host xx any (242840 matches)
> permit tcp any host xx eq 3389 (92 matches)
> 
> -- 
> Att,
> Maiquel
> 
> [As partes desta mensagem que não continham texto foram removidas]
> 
> 
> 
> 
> 



reply via email to

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