Skip to content

Instantly share code, notes, and snippets.

@dgnorton
Last active February 2, 2017 13:24
Show Gist options
  • Save dgnorton/333d6cf22ab96163589c56c4bf4932c0 to your computer and use it in GitHub Desktop.
Save dgnorton/333d6cf22ab96163589c56c4bf4932c0 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "drop database foo; create database foo" | influx
influx -database foo -execute "insert regextest,tag1=test value=1"
echo "select value from regextest" | influx -database foo
echo "select value from /regextest/" | influx -database foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment