while (<>) { print unless /^##/ && eof; } [download]
In reply to Re: Delete last line of file with regex by choroba in thread Delete last line of file with regex by nysus