I'm having my sample.txt file as
Code: Select all
Environment=non-clusters
Server1=xx.xx.xx.xxx
Server2=xx.xx.xx.xxx
GDrvie_Build=\\xx.xx.xx.xxx\Users\vissas\Desktop\WIServerSetup\CAM8\CAM8_6.20.8.2
Build_Artifact_File=Hotfix_CAM8_6.20.8.2.7z
Newer_Version=UAT2_v6.18.13.1
Property_File_Name=MCSysProp.properties
Property_File_Location=C:\narayana\Enviromnet_Setup\WIServerSetup\UAT\MDrive\BaNCSFS\BancsProduct\Intranet\properties\InputFiles
Xml_File_Location=C:\narayana\Enviromnet_Setup\WIServerSetup\UAT\MDrive\BaNCSFS\BancsProduct\Extranet\Bancs.ear\Bancs.war\WEB-INF
Common_Path_For_Extraction=Users\Public
7zip_exe_Location="C:\Program Files\7-Zip\7z.exe"
From the above file I need only the data exists after = in a new file, my new created file needs to look like the below one
Code: Select all
non-clusters
xx.xx.xx.xxx
xx.xx.xx.xxx
\\xx.xx.xx.xxx\Users\vissas\Desktop\WIServerSetup\CAM8\CAM8_6.20.8.2
Hotfix_CAM8_6.20.8.2.7z
UAT2_v6.18.13.1
MCSysProp.properties
C:\narayana\Enviromnet_Setup\WIServerSetup\UAT\MDrive\BaNCSFS\BancsProduct\Intranet\properties\InputFiles
C:\narayana\Enviromnet_Setup\WIServerSetup\UAT\MDrive\BaNCSFS\BancsProduct\Extranet\Bancs.ear\Bancs.war\WEB-INF
Users\Public
"C:\Program Files\7-Zip\7z.exe"