I would like to do in bash something I was doing with perl years ago
$4 (value from a script) can have the value "S"
or "U"
I have:
DirectoryU="$Directory/*.$2"
DirectoryS="$Directory/area $3/*.$2"
and I want to define "DirectoryC" to something like:
DirectoryC=Directory$4
but there I dont want DirectoryC=DirectoryU (or DirectoryS) I want DirectoryC to have the value of DirectoryU (or DirectoryS) so after I can base my script on $DirectoryC ...
Does it make sense?