#!/bin/sh TERM="$1" USER="root" DICT_DB="../dict.db" USER_DB="../user.db" FIND_SQL="../find.sql" cd "$(dirname "$0")" sqlite3 \ -markdown \ -cmd ".timer ON" \ -cmd ".param set :term '$TERM'" \ -cmd ".param set :user '$USER'" \ -cmd "attach '$DICT_DB' as dict" \ -cmd "attach '$USER_DB' as user" \ < "$FIND_SQL"