When a user enters 3 folder names I want all the different names to be put once at the place of $col in this 

> 
> rsync -RravhP $Code --exclude "pub/$col" --exclude "$col" --exclude
>  "$col" $destination ;
> 
> 
> 

```
#!/bin/bash

echo " enter source folder name" ;
read Code ;
echo " enter destination folder name"
read destination ; 

if [ $Code ] ;
then 
    echo " enter folders to exclude seperated by a space"
    read folders ; 
    colors="$folders"
    for col in "$colors"
    do
        rsync -RravhP $Code --exclude "pub/$col" --exclude "$col" --exclude "$col" $destination ; 
    done 
else 
    echo " something went wrong, please check foldername "
fi

```