Skip to content

Commit a3d7cf6

Browse files
James Stone TIL sync botJonas Andersen
James Stone TIL sync bot
authored and
Jonas Andersen
committed
Mon 25 Nov 2024 09:16:45 CET
1 parent 399bea3 commit a3d7cf6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sh/finding-sqlite-dbs.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Find sqlite dbs
2+
3+
Lots of applications use sqlite dbs. It can be useful to try and find them all. For this you can use the following command
4+
5+
```
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)

0 commit comments

Comments
 (0)