Created
February 17, 2014 22:12
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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