Created
February 1, 2017 01:23
-
-
Save bryder/e1f92dece406d9d59efa56cec1706f59 to your computer and use it in GitHub Desktop.
find bad sqlite3 chrome databases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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