Skip to content

Instantly share code, notes, and snippets.

@brendano
Created February 7, 2009 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brendano/59943 to your computer and use it in GitHub Desktop.
Save brendano/59943 to your computer and use it in GitHub Desktop.
CSV from PostgreSQL, at least as far as I can tell. i'm sure messes up embedded quotes and maybe embedded commas.
psql.csv() { psql -qAF , "$@" | egrep -v '^\([0-9]+ rows\)$' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment