1. time(cat file | awk -F' |:' '{t=int($2""$3);if(t >= 2030 && t < 2130){++d[$1]}}END{for(key in d){print key,"\t",d[key]}}')