repo.or.cz
/
sunny256-utils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ly/Makefile: Sort variables
[sunny256-utils.git]
/
list-tables
blob
3d25a83f2a346bbfa8e7c6e288d2b7e17776bcd0
1
#!/bin/sh
2
3
# List the contents of all tables in a sqlite3 database
4
5
for
f
in
`sqlite3 "
$1
" .tables`
;
do
6
echo
====
$f
7
sqlite3
-line
"
$1
"
"SELECT * FROM
$f
"
8
done
|
less