main
#!/bin/bash -e for i in {1..10}; do psql -h localhost -p 15432 sslmode=disable postgres -c "delete from test where test.id=$i" # psql -h localhost -p 15432 sslmode=disable postgres -c "insert into test(id) values($i)" done