Skip to content

Instantly share code, notes, and snippets.

@jessepollak
Created January 10, 2014 02:14
Show Gist options
  • Save jessepollak/8345870 to your computer and use it in GitHub Desktop.
Save jessepollak/8345870 to your computer and use it in GitHub Desktop.
Export emails for MySQL
$ mysql -h HOST -P PORT -u USER -p NAME < /tmp/emails.sql | sed 's/\t/,/g' > /tmp/emails.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment