lines instead of the first %d; with the leading '-', print all but the last NUM lines of each file