Home » Infrastructure » Unix » Unix question (Linux)
Unix question [message #330277] Sat, 28 June 2008 15:00 Go to previous message
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.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Solaris
Next Topic: Positional Parameters Resetting
Goto Forum:
  


Current Time: Thu Apr 25 00:31:27 CDT 2024