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

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

Re: [shell-script] Tirar os valores repetidos


From: Tiago Barcellos Peczenyj
Subject: Re: [shell-script] Tirar os valores repetidos
Date: Tue, 16 May 2006 17:36:41 -0300

eu prefiro fazer assim:

sort lista.txt | uniq

2006/5/16, Flavio Junior <address@hidden>:
cat lista.txt | sort -u


Flávio do Camo Junior aka blk1d

On 5/16/06, Thiago Rodines <address@hidden> wrote:
> Fala pessoal, tudo bem?
>
> Estou com um script e gostaria de tirar dele, tudo o que for repetido. Por
> exemplo:
>
> 12.101.254.227
> 12.101.254.227
> 12.101.254.227
> 12.146.114.30
> 12.146.114.30
> 12.146.114.30
> 12.146.114.30
> 12.146.114.30
> 12.146.114.30
> 12.146.114.30
> 12.146.114.30
> 12.146.114.30
> 12.146.114.30
> 12.148.104.232
> 12.148.104.232
>
> teria que aparecer só:
>
> 12.101.254.227
> 12.146.114.30
> 12.148.104.232

--
Tiago B Peczenyj
Linux User #405772

# cd /pub
# more beer


reply via email to

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