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

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

Re: [shell-script] Re: Detectar palíndromes


From: Alfredo Casanova
Subject: Re: [shell-script] Re: Detectar palíndromes
Date: Mon, 18 Mar 2019 11:54:25 -0300

O arquivo está no link a seguir:
https://drive.google.com/file/d/1UhLSgGrQPYBvf5IP8RgfEZIsNY00oEHP/view?usp=sharing

a resposta correta é 243



On Mon, Mar 18, 2019 at 11:50 AM Alfredo Casanova <address@hidden> wrote:
Também dá um retorno muito maior do que a resposta correta. O grep de um arquivo no outro devolve muitos repetidos.
A resposta analisando linha a linha é 253. Com o grep todas passam de  3000, pq tem mtas ocorrências repetidas.

Em seg, 18 de mar de 2019 11:25, address@hidden [shell-script] <address@hidden> escreveu:
 

Tenta isso


awk 'length>17  && !b[$0]++' a|fgrep -cf <(rev a)

[]'s
Itamar



--
[]'s
Alfredo Tristão Casanova .͘.
Linux User #228230
tel: +55 61 9655 9619

reply via email to

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