aves_mio22/dbcvs.sh
2026-04-18 20:05:02 +02:00

12 lines
185 B
Bash

#!/bin/bash
DB="metadata.db"
for t in $(sqlite3 "$DB" ".tables"); do
echo "Esporto $t..."
sqlite3 "$DB" <<EOF
.headers on
.mode csv
.output ${t}.csv
SELECT * FROM $t;
EOF
done