#!/bin/bash NAME=$1 echo ls -l --color=auto /var/www/site[1234567890] echo echo -en "Enter directory to link the new site (0-9) (y/n): " read -n 1 answer if [[ "$answer" =~ ^([0123456789])$ ]]; then ./site${answer} ${NAME}/web fi