Skip to content

Instantly share code, notes, and snippets.

@zhhz
Created December 4, 2009 15:14
Show Gist options
  • Save zhhz/249061 to your computer and use it in GitHub Desktop.
Save zhhz/249061 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