Created
July 30, 2022 01:28
-
-
Save juliarose/b6ad22c03122d04a1a85c5717059a1e3 to your computer and use it in GitHub Desktop.
Exctract a single table out of a mysqldump file.
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
sed -n -e '/CREATE TABLE.*`table_name`/,/Table structure for table/p' db.sql > table.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment