Infromation regarding the IF condition

Hi Gurus

Greeting for the day

1)i had a file cat info.log

ORCL
TEST
TEST1
INFO

based upon the info.log can you provide me some script where i can set

export ORACLE_SID=ORCL
export ORACLE_HOME=/orcl/oracle/10.2.0

---------- Post updated at 06:57 AM ---------- Previous update was at 06:55 AM ----------

Thanks in advance

#!/bin/ksh
# give the value for variable and then use export = generic solution for every shells

# read value from 1st line
read ORACLE_SID < info.log
ORACLE_HOME=/orcl/oracle/10.2.0

# local variables -> global variables = child process get copy
export ORACLE_SID ORACLE_HOME

Hi Thanks a ton

in this info.log i should read only one out of 3
where it can promt echo enter the SID

Thank you