Skip to content

Instantly share code, notes, and snippets.

@juliarose
Created July 30, 2022 01:28
Show Gist options
  • Save juliarose/b6ad22c03122d04a1a85c5717059a1e3 to your computer and use it in GitHub Desktop.
Save juliarose/b6ad22c03122d04a1a85c5717059a1e3 to your computer and use it in GitHub Desktop.
Exctract a single table out of a mysqldump file.
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