Skip to content

Instantly share code, notes, and snippets.

@eggie5
Created February 24, 2011 19:06
Show Gist options
  • Save eggie5/842676 to your computer and use it in GitHub Desktop.
Save eggie5/842676 to your computer and use it in GitHub Desktop.
n=$1
psql -d okapi -c "delete from test"
echo $1
for (( i = 0 ; i <= n; i++ ))
do
psql -q -d okapi -c "INSERT INTO test VALUES ('inserting: $i')"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment