Created
November 24, 2021 12:28
-
-
Save chrisjangl/7362db6ae26ff211b7d7dbe268506ab3 to your computer and use it in GitHub Desktop.
Revisions
-
chrisjangl revised this gist
Nov 24, 2021 . No changes.There are no files selected for viewing
-
chrisjangl created this gist
Nov 24, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ i=1 touch urls.txt COUNT=$(wc -l sites.txt) for SITE in $(cat sites.txt) do cd $SITE echo "Working on $SITE ($i of $COUNT)..." echo "## $SITE" >> ../urls.txt url=$(wp option get siteurl) postURL="/wp-login.php" db=$(wp config get DB_NAME) echo "DB: $db" >> ../urls.txt echo $url$postURL >> ../urls.txt echo "----------------" >> ../urls.txt echo " " >> ../urls.txt echo " " >> ../urls.txt echo " " >> ../urls.txt ((i=i+1)) clear cd .. done