#!/bin/bash 

cp .db/main.db megatest.db

for db in $(ls .db/?.db); do
  echo $db
  sqlite3 $db "SELECT * FROM tests" | sqlite3 megatest.db ".import /dev/stdin tests"
done
