#!/bin/bash base_url="http://104.168.139.141" hosting_provider="HostWinds" public_html_path="/public_html/" subdirectories=( "/1xnews.com/" "/ca2grip.com/" "/cadillite.com/" "/canecooler.com/" "/espkey.com/" "/fmsp.us/" "/fordmakerspace.com/" "/iwanttoblanksomeblank.com/" "/jimsgarage.org/" "/jimsgear.com/" "/jobsact.com/" "/nfgt.us/" "/techshop.com/" "/techshop.org/" "/techshop.ws/" "/techshopgear.com/" ) for subdir in "${subdirectories[@]}" do url="$base_url$subdir" domain="$(echo $subdir | tr -d '/')" index_file="$domain/index.html" new_content="
This is $domain hosted at $hosting_provider in the \"$base_url$public_html_path$domain/\" directory.
" sed -i '' "s#This is .*#$new_content#g" "$index_file" done