Created
September 27, 2020 08:53
-
-
Save biblia19/9f3c3019f1c07d677f277f3165b63b20 to your computer and use it in GitHub Desktop.
Automation Rename Folder from Wordpress
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 characters
#!/bin/bash | |
for i in {1..70} | |
do | |
site="$(sed -n ${i}p folder_txt_file)" | |
unzip -q latest.zip | |
mv wordpress $site | |
chown -R www-data:www-data $site | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment