ly/Makefile: Sort variables
[sunny256-utils.git] / list-tables
blob3d25a83f2a346bbfa8e7c6e288d2b7e17776bcd0
1 #!/bin/sh
3 # List the contents of all tables in a sqlite3 database
5 for f in `sqlite3 "$1" .tables`; do
6 echo ==== $f
7 sqlite3 -line "$1" "SELECT * FROM $f"
8 done | less