#!/bin/bash echo -n User: read user; echo -n database: read database; psql -U $user $database < dspace.sql >> tmp.sql cat tmp.sql | grep insert > realInserts.sql psql -U $user $database < realInserts.sql rm tmp.sql rm realInserts.sql echo "DON'T FORGET TO REINDEX LUCINE!" echo "task: reindex"