Advertisement
renebarbosa

MegaSena da Virada

Dec 30th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. for a in `seq 1 6`; do echo -n "$aº Número: " ; awk -v NUM=$a '{print $NUM}' megasena.txt | sort | uniq -c | sort -n| awk {'print $2'} | tail -1; done
  2. 1º Número: 49
  3. 2º Número: 05
  4. 3º Número: 27
  5. 4º Número: 29
  6. 5º Número: 12
  7. 6º Número: 30
  8.  
  9. sed 's/ /\n/g' megasena.txt  | sort | uniq -c | sort -n | awk {'print $2'} | tail -6 | xargs -L6
  10. 51 33 53 54 04 05
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement