How To Quickly Check Your Unread Gmail From Linux Mint / Ubuntu Terminal
March 15, 2012
Here’s how to quickly check your unread Gmail from Linux Mint / Ubuntu terminal:
1. Issue the following command at the terminal –
sudo apt-get install curl
2. Now, to quickly check unread Gmail, issue the following command at the terminal –
curl -u <username>@gmail.com:<password> –silent “https://mail.google.com/mail/feed/atom” | tr -d ‘\n’ | awk -F ‘<entry>’ ‘{for (i=2; i<=NF; i++) {print $i}}’ | sed -n “s/<title>\(.*\)<\/title.*name>\(.*\)<\/name>.*/\2 – \1/p”
One Comment