Read a file and store the values in a varibale
Posted: 27 Feb 2018 05:10
My CSV file looks like
In the above csv
First I've to check the first column If its Enviroment then set the respective second column value to some variable called env
In the same manner I've to check all and store their respective to variables servername,buildlcoation and buildversion
Could anyone please help.
Code: Select all
Environment,non-cluster
Server1,10.66.216.141
GDrvie_Build,\\ukgswtowb10\g$\CAM8\CAM8_6.20.8.4
Change_in_MysysProperty,ORF2_v6.20.8.9
First I've to check the first column If its Enviroment then set the respective second column value to some variable called env
In the same manner I've to check all and store their respective to variables servername,buildlcoation and buildversion
Could anyone please help.