Skip to content

Instantly share code, notes, and snippets.

@KingJon
KingJon / gmail.sh
Created May 15, 2010 22:38 — forked from zhhz/gmail.sh
curl -u your_gmail_account:your_password --silent "https://mail.google.com/mail/feed/atom" | tr -d 'n' | awk -F '' '{for (i=2; i<=NF; i++) {print $i}}' | sed -n "s/<title>\(.*\)<\/title.*name>\(.*\)<\/name>.*/\2 - \1/p"