Skip to content

Instantly share code, notes, and snippets.

@KingJon
Forked from zhhz/gmail.sh
Created May 15, 2010 22:38
Show Gist options
  • Save KingJon/402466 to your computer and use it in GitHub Desktop.
Save KingJon/402466 to your computer and use it in GitHub Desktop.
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment