Commit 8291c911 authored by Paulo V C Medeiros's avatar Paulo V C Medeiros
Browse files


parent d6d3c40d
rm -f dump.sql output_with_dump.db
for f in "$@"; do
sqlite3 -vfs unix-none $f ".dump" | sed -e "s/CREATE TABLE/CREATE TABLE IF NOT EXISTS/" | sed -e "s/CREATE INDEX/CREATE INDEX IF NOT EXISTS/" >> dump.sql
sqlite3 -vfs unix-none output_with_dump.db ".read dump.sql"
rm -f dump.sql
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment