Add basic_search_replace.sh
commit
a67619298b
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
WPDBPHOST=cat wp-config.php | grep DB_HOST | cut -d \' -f 4
|
||||
WPDBNAME=cat wp-config.php | grep DB_NAME | cut -d \' -f 4
|
||||
WPDBUSER=cat wp-config.php | grep DB_USER | cut -d \' -f 4
|
||||
WPDBPASS=cat wp-config.php | grep DB_PASSWORD | cut -d \' -f 4
|
||||
keywordSearch=$1
|
||||
keywordreplace=$2
|
||||
|
||||
php srdb.cli.php -h $WPDBPHOST -n $WPDBNAME -u $WPDBUSER -p "$WPDBPASS" -s "$keywordSearch" -r "$keywordreplace"
|
||||
Loading…
Reference in New Issue