New Mail

Bash Prompt HOWTO:
Prev | Chapter 11. Prompt Code Snippets | Next

# 11.13. New Mail

Several people have sent me methods for checking whether or not they had new e-mail. Most of them relied on programs that aren't on every system. Then I received the following code from Henrik Veenpere: cat $MAIL |grep -c ^Message-. This is simple and elegant, and I like it.

Prev | Home | Next
Having the Prompt Ignored on Cut and Paste | Up | Prompt Beeps After Long-Running Commands