Skip to content

Instantly share code, notes, and snippets.

@dunz0r
Created April 22, 2015 18:55
Show Gist options
  • Select an option

  • Save dunz0r/94db8651fcb1e8d1079b to your computer and use it in GitHub Desktop.

Select an option

Save dunz0r/94db8651fcb1e8d1079b to your computer and use it in GitHub Desktop.
#!/bin/sh
sed -e 's/\t/\",\"/g' \
-e 's/^/\[\"/' \
-e 's/$/\"\],/' \
-e '1s/\(.*\)/\{\"fields\":\1\ \"data\":[/g' -e '$s/.$/\]\}/' | tr -d "\n"
@dunz0r
Copy link
Author

dunz0r commented Apr 22, 2015

I feel so dirty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment