delete last lines of a huge file