procmail
[Top] [All Lists]

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

2016-05-25 08:08:24
udi M wrote:


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

tac: Command not found.

URL ?

uname -a
        FreeBSD lapr.js.berklix.net 11.0-CURRENT FreeBSD 11.0-CURRENT
        #10 r300601M: Wed May 25 07:11:11 CEST 2016
        
jhs(_at_)lapr(_dot_)js(_dot_)berklix(_dot_)net:/data/release/11.0-CURRENT/usr/obj/usr/src/sys/GENERIC
        amd64
cd /usr/ports; cd */tac
        */tac: No match.

Cheers,
Julian
--
Julian Stacey, BSD Linux Unix Sys Eng Consultant Munich http://berklix.eu/jhs/
 Mail plain text,  No quoted-printable, HTML, base64, MS.doc.
 Prefix old lines '> '  Reply below old, like play script.  Break lines by 80.
 Britain denies 700,000+ Brits in EU a vote. http://www.berklix.eu/brexit/
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>