I want to read these values in a while loop meaning
I want to read record line by line.
and i want only one value at a time, instead of getting all the values at a time. can you pls help.
My requirement is like this.
I have a text file having comma seperated values of these records .
OName OType SrcDB Sschema targetdb TSchema Load Dataype processY/N
aa Table a e i m Y db2 y
aa index b c d e N sql N
Now i have to open read the file record wise,
check if last column processy/n is yes,
then check the datatype
if it is db2
then connect to db2
check the otype column value
based on type of object i have to execute the below operations.
so my shell script should have all the possible commands present. my script should check type of the object, replace varaiables with values picked from record and execute the shell script.
ex create <SrcDB> <targetdb> <Sschema> <TSchema> <OName>
and then send the output to log and error files.
I am new to unix and not able to proceed any where.
Please help me.
Thanks much for your help.
---------- Post updated at 08:16 PM ---------- Previous update was at 08:06 PM ----------
Thanks so much durden for your help.
Can you please let me know if you need some more details.
Thanks again
---------- Post updated at 10:15 PM ---------- Previous update was at 07:16 PM ----------
hi,
Can some one help me how to retrieve column values row by row
My requirement is like below :
I have a text file having comma seperated values of these records .
OName OType SrcDB Sschema targetdb TSchema Load Dataype processY/N
aa Table a e i m Y db2 y
aa index b c d e N sql N
Now i have to open read the file record wise,
check if last column processy/n is yes,
then check the datatype
basically i want to get a nth column values one after another not as a single result.
Some one help me pls it would be of great help
thanks much