What I'm trying to do is the following. My script reads the name of folders in current directory:
for D in */ ; do
echo $D
done
The result is:
folder1/ folder2/ folder3/
After this I can use the $D for other purposes. I have another variable : PATH What I want to do is make variable PATH dependent of the $D in a form of a list or something.
Like if $D is folder1/ then PATH is /var/lib/idk
if $D is folder2/ then PATH is /home/lib/user
if $D is folder3/ then PATH is something completly different
Then i'd like to use $PATH in an svn checkout like this
svn checkout svn://svn.something.local/home/idk/$PATH
I've red that it's possible with array, but the examples are too compicated for someone on my level. Can someone make a more simple example?
Thanx in advance