Hi,
I would like to create SQL statements from flat file.
Flat file has follwing values:
Plant Date
AB1 2005-10-10
AC1 2004-10-10
Shell script has following variables:
set type01 = "xxx"
SQL should be:
Insert into qa set date01 = 2005-10-10(from flat file), plant01=AB1(from flat file) where type01 = xxx (shell variable $type01) ;
Insert into qa set date01 = 2004-10-10,plant01=AC1 where type01 = xxx ;
I am not able to combine awk with shell variable.
I would like to create SQL statements from flat file.
Flat file has follwing values:
Plant Date
AB1 2005-10-10
AC1 2004-10-10
Shell script has following variables:
set type01 = "xxx"
SQL should be:
Insert into qa set date01 = 2005-10-10(from flat file), plant01=AB1(from flat file) where type01 = xxx (shell variable $type01) ;
Insert into qa set date01 = 2004-10-10,plant01=AC1 where type01 = xxx ;
I am not able to combine awk with shell variable.