Add export script

This commit is contained in:
Samuel Sloniker 2022-11-24 09:31:31 -08:00
parent abd750932f
commit da8c4173c5
Signed by: kj7rrv
GPG Key ID: 1BB4029E66285A62

8
export.sh Executable file
View File

@ -0,0 +1,8 @@
#!/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