We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbe76c4 commit efc6651Copy full SHA for efc6651
sh/finding-sqlite-dbs.md
@@ -6,4 +6,10 @@ Lots of applications use sqlite dbs. It can be useful to try and find them all.
6
find . -type f -exec sh -c 'head -c 16 "$1" 2>/dev/null | grep -q "^SQLite format" && echo "$1"' _ {} \;
7
```
8
9
-as all sqlite files start with the header string: "SQLite format 3\000" , see: [Database File Format](https://www.sqlite.org/fileformat.html)
+as all sqlite files start with the header string: "SQLite format 3\000" , see: [Database File Format](https://www.sqlite.org/fileformat.html)
10
+
11
+it can then be helpful to get the size of each result
12
13
+```
14
+find . -type f -exec sh -c 'head -c 16 "$1" 2>/dev/null | grep -q "^SQLite format" && echo "$1 $(stat -c%s "$1" | numfmt --to=iec)"' _ {} \;
15
0 commit comments