(I've reviewed the other answers but didn't find it match my question) I have an INI file that looks like that:
[DATA]
installerDir=C:\installerDir
scriptsDir=C:\Scripts
TargetDirName=MSI
[DB]
DB_Name="Database_2211"
DistribDir=DataDist
TargetDir=TarMSI
I want to get as an output 2 files that will look like that: First file will contain the following data:
installerDir=C:\installerDir
scriptsDir=C:\Scripts
TargetDirName=MSI
Second file will contain the following data:
DB_Name="Database_2211"
DistribDir=DataDist
TargetDir=TarMSI
Files names should be something_DATA.ini & something_DB.ini accordingly. Files content should not include the block name (i.e.: DATA -or- DB...) I found that code for bash but cannot find it for PowerShell.