csplit -z -f msg /var/spool/mail/root ‘/^From /’ ‘{*}’
less $(ls msg* | tail -n 1)
tac /var/spool/mail/root | awk ‘/^From /{exit} {print}’ | tac
Linux Tutorial and something else…..
I don't know what's the matter with people: they don't learn by understanding, they learn by some other way — by rote or something. Their knowledge is so fragile! (Feynman)
csplit -z -f msg /var/spool/mail/root ‘/^From /’ ‘{*}’
less $(ls msg* | tail -n 1)
tac /var/spool/mail/root | awk ‘/^From /{exit} {print}’ | tac