Feeling very stupid this morning and cant sort this problem out, help
would be appreciated.
Say I have the following sort of script (I know it is not right), its
for illustration purposes.
DIR1=/blob/blobby
DIR2=/blob/notblobby
for EXT in 1 2
do
DIR=$("DIR"$EXT)
echo $DIR
done
Of course, what I would like to see output is
/blob/blobby
/blob/notblobby
In the above example, it shouts bad substitution. I have tried a number
of quoting variations without luck.
Am I barking completely up the wrong tree, is there another way to do
this?
I need the for loop though as there are other things apart from this
variable I have to manipulate.
Cheers
Aengus
--
----------------------------------------------------------------------
Computational Genome Analysis Laboratory Tel: +44 (0)171 269 3679
Imperial Cancer Research Fund
Lincoln's Inn Fields, Holborn, London, WC2A 3PX, UK
----------------------------------------------------------------------