Skip to content

Instantly share code, notes, and snippets.

@jauderho
Created June 13, 2010 03:00
Show Gist options
  • Save jauderho/436289 to your computer and use it in GitHub Desktop.
Save jauderho/436289 to your computer and use it in GitHub Desktop.
#!/bin/sh
for i in `find / -name "*.db*" -print`
do
echo "cleaning $i"
echo 'VACUUM;' | sqlite3 $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment