in reply to removing lines that are in the end of a file
Slurp the entire file and substitute \n.*?$
UPDATED: ok, i see, this is a different question than "remove the last line of the file".
Slurp the entire file and print $OUTFILE ^.*?125\sSIL