Searching for a line
Posted: 03 May 2011 02:07
Hi,
I am very new to batch scripting and i need to search a file and assign the value of a particular line to a variable. The file contents are like this.
Variable name : NextFiscalYr1
Server name : chnveltss04
Application name :
Database name :
Variable value : FY13
Variable name : Fcst_Wk
Server name : chnveltss04
Application name : Plan_UAT
Database name :
Variable value : Wk1
Variable name : NextScenario
Server name : chnveltss04
Application name : Plan_UAT
Database name :
Variable value : LE_Wk2
How do i search for variable value where variable name is Fcst_Wk and then assign Wk1 to a variable?
Regards,
Ragav.
I am very new to batch scripting and i need to search a file and assign the value of a particular line to a variable. The file contents are like this.
Variable name : NextFiscalYr1
Server name : chnveltss04
Application name :
Database name :
Variable value : FY13
Variable name : Fcst_Wk
Server name : chnveltss04
Application name : Plan_UAT
Database name :
Variable value : Wk1
Variable name : NextScenario
Server name : chnveltss04
Application name : Plan_UAT
Database name :
Variable value : LE_Wk2
How do i search for variable value where variable name is Fcst_Wk and then assign Wk1 to a variable?
Regards,
Ragav.