I have an array of customer names that I want to use to make a directory. Below is the code I'm running:
$ echo "$customerArray=( customer1 customer2 customer3 customer4 customer5 )"
for customerName in $( customerArray );
do
mkdir -p /home/$customerName
mkdir -p /home/$customerName/outbound
mkdir -p /home/$customerName/outbound_backup
mkdir -p /home/$customerName/dropoff
done
Can anyone explain to me what I'm doing wrong?