Skip to content

Instantly share code, notes, and snippets.

@bryder
Created February 1, 2017 01:23
Show Gist options
  • Save bryder/e1f92dece406d9d59efa56cec1706f59 to your computer and use it in GitHub Desktop.
Save bryder/e1f92dece406d9d59efa56cec1706f59 to your computer and use it in GitHub Desktop.
find bad sqlite3 chrome databases
cd ~/.config/google-chrome/Default # or wherever
find . -type f -print0 | xargs --null -n 1 file | grep -i sql | cut -d: -f1 | tr '\n' '\0' > /tmp/list
cat /tmp/list | xargs --null -t -n 1 -I'{}' sqlite3 '{}' "PRAGMA integrity_check"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment