Extracting one database from a large dump file

Use the following command:

sed -n '/^-- Current Database: `test`/,/^-- Current Database: `/p' fulldump.sql > oneDB.sql

  1. No comments yet.

  1. No trackbacks yet.