add numbering and remove 1 line from each file