Skip to content

Instantly share code, notes, and snippets.

@anujkaushal
Last active September 10, 2018 12:22
Show Gist options
  • Save anujkaushal/564ae3d42ae9f8129cf1fd617b5803f3 to your computer and use it in GitHub Desktop.
Save anujkaushal/564ae3d42ae9f8129cf1fd617b5803f3 to your computer and use it in GitHub Desktop.
Remove database name from db-dump file
grep -v "USE \`db_name\`" database.sql > database-without-name.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment