diff --git a/export.sh b/export.sh new file mode 100755 index 0000000..1d41ccb --- /dev/null +++ b/export.sh @@ -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