3 START
=$
(head -n 1 "$1" | cut
-f 2)
4 STARTOK
=$
({ tail -n 1 "$1.counts.$seconds" ||
echo 0; } | cut
-f 1)
5 STOP
=$
( tail -n 1 "$1" | cut
-f 2)
7 fuser
"$1.counts.$seconds" &>/dev
/null
&& exit 23;
9 test "$STARTOK" -gt "$START" && START
="$STARTOK";
10 seq $START $STOP |
while read MAX
; do
11 MIN
=$
(( $MAX - $seconds ))
13 cat "$1" | cut
-f 2,5 |
grep -v '\s0' | cut
-f 1 |
egrep $
(echo $
(seq $MIN $MAX) |
tr ' ' '|') |
wc -l
14 done >> "$1.counts.$seconds"
This page took 0.277889 seconds and 4 git commands to generate.