gptc-news-model/export.sh

9 lines
213 B
Bash
Raw Normal View History

2022-11-24 09:31:31 -08:00
#!/bin/sh
cp articles.db old_articles.db
sqlite3 articles.db 'UPDATE articles SET text = "***";'
sqlite3 articles.db 'VACUUM;'
echo -n "Press enter when done..."
read
rm articles.db
mv old_articles.db articles.db