Unix question [message #330277] |
Sat, 28 June 2008 15:00 |
msuphaluk
Messages: 20 Registered: December 2007 Location: BKK,Thailand
|
Junior Member |
|
|
Dear All,
I am facing an unix programming question.
OU="AA BR CO"
RESPAA="AA Purchasing"
RESPBR="BR Purchasing"
RESPCO="COR Purchasing"
for rec in $OU
do
X="RESP"$rec
echo $X
done
I expect to get the result like the "AA Purchasing" but it returns "RESPAA". So how can I fix this code?
Thank you in advanced,
Suphaluk M.
|
|
|
|
Re: Unix question [message #330286 is a reply to message #330277] |
Sat, 28 June 2008 15:37 |
msuphaluk
Messages: 20 Registered: December 2007 Location: BKK,Thailand
|
Junior Member |
|
|
Thank you for your promptly reply. I will do it carefully when I post the question next time.
Regards,
Suphaluk M.
PS. even I use variable but the result is still not correct.
|
|
|
|