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

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

Re: [shell-script-pt] Contagem por agrupamento


From: PY2YP
Subject: Re: [shell-script-pt] Contagem por agrupamento
Date: Sun, 14 Jun 2020 17:31:18 -0300
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

Onrigado Itamar, funcionou, saiu assim:

 = 2
 = 2
30 = 2
 = 2
 = 2
sh-4.4$

Contou um agrupamento a mais e identificou somente o grupo 30.

Cesar

On 6/14/2020 4:34 PM, Itamar Santos de Souza por (shell-script-pt) wrote:
awk '!linha[$0]++{num[$2]++}; END {for (i in num){print i,"=",num[i]}}' arqtotal.txt



reply via email to

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