print lines matching ranges of dates