#!/bin/bash
#往期双色球中奖号码如下:
#01 04 11 28 31 32 16
#04 07 08 18 23 24 02
#02 05 06 16 28 29 04
#04 19 22 27 30 33 01
#05 10 18 19 30 31 03
#02 06 11 12 19 29 06
#统计篮球和红球数据出现的概率次数(篮球不分顺序,统计所有篮球混合在一起的概率)
awk '{print $1"
"$2"
"$3"
"$4"
"$5"
"$6}' 1.txt | sort | uniq -c | sort
awk '{print $7}' 1.txt |sort |uniq -c | sort
# awk '{print $1"
"$2"
"$3"
"$4"
"$5"
"$6}' 1.txt | sort | uniq -c | sort
1 01
1 07
1 08
1 10
1 12
1 16
1 22
1 23
1 24
1 27
1 32
1 33
2 02
2 05
2 06
2 11
2 18
2 28
2 29
2 30
2 31
3 04
3 19
# awk '{print $7}' 1.txt |sort |uniq -c | sort
1 01
1 02
1 03
1 04
1 06
1 16