#!/bin/bash -x for arg in "$@"; do cp -r cms-account-proto/ $arg sed -i '' "s|cms-account-proto|$arg|g" $arg/*.html done