Skip to content

Instantly share code, notes, and snippets.

View narusemotoki's full-sized avatar

Motoki Naruse narusemotoki

View GitHub Profile
@narusemotoki
narusemotoki / execsqlite.sh
Created July 7, 2012 04:49
SQLite3のコマンドを直接実行します
#!/bin/sh
if [ 2 -ne $# ]; then
echo "引数にデータベース名 実行するSQL文を与えてください" 1>&2
exit 1
fi
sqlite3 $1<<EOF
.separator ,
$2
.exit