print lines matching a date range