[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Organizando uma lista de IP's com o sort
From: |
Otávio Fernandes |
Subject: |
Re: [shell-script] Organizando uma lista de IP's com o sort |
Date: |
Sun, 27 Jan 2008 13:45:00 -0200 |
Israel,
Tenho sim:
$ cat temp.txt
10.0.5.10
10.0.5.16
10.0.5.2
10.0.5.3
10.0.5.6
$ cat temp.txt |sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4
10.0.5.2
10.0.5.3
10.0.5.6
10.0.5.10
10.0.5.16
Para maiores informações, veja:
http://www.google.com.br/search?source=ig&hl=pt-BR&rlz=&q=sort+ip+addresses&btnG=Pesquisa+Google&meta=
http://www.madboa.com/geek/sort-addr/
um abraco,
--
| --
| Otávio Fernandes < otaviof | gmail | com >
| FreeBSD 7.0-PRERELEASE && GNU/Linux User: 283.396
| (( Especial Programação )) http://geekbr.podcastbrasil.com/ -- 0.15
| --