Skip to content

Instantly share code, notes, and snippets.

@stantonk
Created February 17, 2014 22:12
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 stantonk/9060293 to your computer and use it in GitHub Desktop.
Save stantonk/9060293 to your computer and use it in GitHub Desktop.
Easily copy results of a SQL query in SequelPro (or any program that uses tab-delimited data when copying from a database or spreadsheet program) and turn it into JIRA flavored Markdown to produce a nice table in the comments.
#!/usr/bin/env bash
# Will create a table in JIRA markup from a tab-delimited copy-paste buffer from
# SequelPro so you can embed a SQL query results easily in a JIRA ticket in table
# form.
pbpaste | tr '\t' '|' | sed 's/^/|/' | sed 's/$/|/' | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment