10 lines
402 B
Bash
10 lines
402 B
Bash
#!/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" |