Hi, I know this isn't specifically a cPanel/WHM question and more of a linux command (if that's right?) question, but I am wondering if there is a way of deleting multiple directories at once (which each have different parents) and then uploading and extracting a zip to multiple at once too?
I am basically trying to deploy a theme update to 70 Wordpress sites that I have in one account on my server, so I would like to delete:
*/wp-content/themes/Theme1
then download my update using:
wget -P */wp-content/themes https://url.to.download.from
extract all:
unzip */wp-content/themes/v5.0.1.zip
then delete the zip files:
rm -fv */wp-content/themes/v5.0.1.zip
Would this work using * as a wildcard? If not, is there any other way?
Thanks.
I am basically trying to deploy a theme update to 70 Wordpress sites that I have in one account on my server, so I would like to delete:
*/wp-content/themes/Theme1
then download my update using:
wget -P */wp-content/themes https://url.to.download.from
extract all:
unzip */wp-content/themes/v5.0.1.zip
then delete the zip files:
rm -fv */wp-content/themes/v5.0.1.zip
Would this work using * as a wildcard? If not, is there any other way?
Thanks.