Re: Extract last email from an email file (mbox format)

udi M <[email protected]> Wed, 25 May 2016 15:46:52 +0300
Newsgroups gmane.mail.procmail
Organization tau
Message-ID <[email protected]>

On 25/05/16 09:12, Xu Wang wrote:
> Hi how can I efficiently extract the last email in a huge mbox email file?


tac  thaBigBox  |  sed -n -e '1,/^From /p'  |  tac

--udi


> Kind regards,
>
> Xu
> ____________________________________________________________
> procmail mailing list   Procmail homepage: http://www.procmail.org/
> [email protected]
> http://mailman.rwth-aachen.de/mailman/listinfo/procmail