Created
December 3, 2012 07:03
-
-
Save wokamoto/4193262 to your computer and use it in GitHub Desktop.
[WordPress] ダンプファイルのテーブルプレフィックスを変更するシェルスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sed -e 's/\(EXISTS\|TABLES\?\|INSERT INTO\) `wp_/\1 `wp_other_/ig' dump.sql > dump_new.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
テーブルプレフィックスを wp_ から wp_other_ に変えた場合