mktar: Use `wc` instead of `du` in summary message
[sunny256-utils.git] / rdbl-sqlite3
blob76b9b4513d7a232c3eaa8ba60d7870930f966c34
1 #!/usr/bin/env bash
3 #=======================================================================
4 # rdbl-sqlite3
5 # File ID: 7515bdfa-1872-11e5-aaa8-fefdb24f8e10
7 # [Description]
9 # Author: Øyvind A. Holm <sunny@sunbase.org>
10 # License: GNU General Public License version 2 or later.
11 #=======================================================================
13 if test "$(head -c 13 "$1")" != "SQLite format"; then
14 cat "$1"
15 exit
18 sqlite3 "$1" .dbinfo
19 echo
20 sqlite3 "$1" .dump