Skip to content

Instantly share code, notes, and snippets.

@rastermanden
Created March 11, 2015 20:26
Show Gist options
  • Save rastermanden/94c4a663176c41248f3e to your computer and use it in GitHub Desktop.
Save rastermanden/94c4a663176c41248f3e to your computer and use it in GitHub Desktop.
termial alias to convert psql output to markdown tables
alias psql2markdown=" sed 's/+/|/g' | sed 's/^/|/' | sed 's/$/|/' | grep -v rows | grep -v '||'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment