fork download
  1. awk 'BEGIN{print "Period","min","max"}
  2. NR==1||(NR%10==0){mi=ma=$2}
  3. {$2<mi?mi=$2:0;$2>ma?ma=$2:0}
  4. NR%9==0{print ++i,mi,ma}'
Success #stdin #stdout 0.02s 5264KB
stdin
a     3
b     4
c     5
d     4
e     3
f     2
g     1
h     2
i     3
j     4
k     5
l     6
m     5
n     4
o     3
p     2
q     1
r     0
s     1
t     2
u     3
stdout
Period min max
1 1 5
2 0 6