Skip to content

Instantly share code, notes, and snippets.

@Flushot
Last active December 18, 2015 12:39
Show Gist options
  • Save Flushot/5784657 to your computer and use it in GitHub Desktop.
Save Flushot/5784657 to your computer and use it in GitHub Desktop.
Comments out 'CREATE DATABASE' lines in a MySQL backup script
#!/bin/sh
sed -i.bak "s@^\(CREATE DATABASE\)@#\1@g" $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment