christiniaroelin
Programmer
Hi gurus,
i have a file variab.dat which has thousands of line as below
END_DAY='21'
END_HR='16'
MIN='03'
MTH='11'
END_YR='05'
EXT_ENDED='MONDAY NOVEMBER 21ST, 2005 16.03.27'
EXT_START='MONDAY NOVEMBER 21ST, 2005 15.59.58'
my requirement is to export these vaiables to env.
export env END_DAY='21'
export env END_HR='16'
export env MIN='03'
export env MTH='11'
export env END_YR='05'
export env EXT_ENDED='MONDAY NOVEMBER 21ST, 2005 16.03.27'
export env EXT_START='MONDAY NOVEMBER 21ST, 2005 15.59.58'
i had a for loop to prefix export to each line followed by an echo. But it takes the space as a delimiter. Also, on echo it spits out the entire line and not just the value.(i.e on echo $END_DAY gives END_DAY='21'INSTEAD OF JUST '21'.
Could you please help me on this one.
Thanks in advance
christi.
i have a file variab.dat which has thousands of line as below
END_DAY='21'
END_HR='16'
MIN='03'
MTH='11'
END_YR='05'
EXT_ENDED='MONDAY NOVEMBER 21ST, 2005 16.03.27'
EXT_START='MONDAY NOVEMBER 21ST, 2005 15.59.58'
my requirement is to export these vaiables to env.
export env END_DAY='21'
export env END_HR='16'
export env MIN='03'
export env MTH='11'
export env END_YR='05'
export env EXT_ENDED='MONDAY NOVEMBER 21ST, 2005 16.03.27'
export env EXT_START='MONDAY NOVEMBER 21ST, 2005 15.59.58'
i had a for loop to prefix export to each line followed by an echo. But it takes the space as a delimiter. Also, on echo it spits out the entire line and not just the value.(i.e on echo $END_DAY gives END_DAY='21'INSTEAD OF JUST '21'.
Could you please help me on this one.
Thanks in advance
christi.