Skip to content

Instantly share code, notes, and snippets.

@devzorg
Created July 20, 2020 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devzorg/c74119b3e509d3f5062cdfa0750e6612 to your computer and use it in GitHub Desktop.
Save devzorg/c74119b3e509d3f5062cdfa0750e6612 to your computer and use it in GitHub Desktop.
Import one table from big sql file
sed -n -e '/CREATE TABLE.*`TABLE_TO_FIND`/,/CREATE TABLE/p' bigdump.sql > single-table-dump.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment