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

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

Re: [shell-script] Re: [OT] mega-sena com shell


From: itamarnet
Subject: Re: [shell-script] Re: [OT] mega-sena com shell
Date: 31 Dec 2014 06:04:55 -0800


Eu por exemplo não tenho html2text, mas pode usar

- links -dump
- lynx -dump -nolist
w3m -dump -T 'text/html'

e qq um deles pipear por exemplo com esse trecho em awk, para lista um número por linha:

awk '/[0-9]\/[0-9]/ {for (i=3;i<=8;i++) printf "%s\n", $i }'



ou esse para já ordenar e eliminar a sequência "sort | uniq -c | sort":

awk '/[0-9]\/[0-9]/ {for (i=3;i<=8;i++) numero[$i]++} END {for (num in numero) print numero[num], num | "sort"  }'


reply via email to

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