From 0b025d6793d688732b1c7eeaef031ed9f8919614 Mon Sep 17 00:00:00 2001 From: Ludwig Behm <421093+lbehm@users.noreply.github.com> Date: Thu, 5 Jan 2023 22:37:21 +0100 Subject: [PATCH] some data can be interpreted by grep as binary data and would be dropped if the `-a` flag isn't set --- Migrating-from-MariaDB-(MySQL)-to-SQLite.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Migrating-from-MariaDB-(MySQL)-to-SQLite.md b/Migrating-from-MariaDB-(MySQL)-to-SQLite.md index b72cc72..5f2a236 100644 --- a/Migrating-from-MariaDB-(MySQL)-to-SQLite.md +++ b/Migrating-from-MariaDB-(MySQL)-to-SQLite.md @@ -39,7 +39,7 @@ mysqldump \ --no-create-info \ --hex-blob \ --skip-quote-names \ - | grep "^INSERT INTO" | grep -v "__diesel_schema_migrations" \ + | grep -a "^INSERT INTO" | grep -a -v "__diesel_schema_migrations" \ | sed 's#\\"#"#gm' \ | sed -sE "s#,0x([^,]*)#,X'\L\1'#gm" \ > mysql-to-sqlite.sql