So I am looking for something to do what “file section” does on INI formatted files, but for any format.
By INI formatted, I mean that “file section” inspector expects a file to look like this, with brackets denoting labels, and key=value pairs under each bracketed label:
[section_1]
line1=this is
line2=my first
line3=section
[section_2]
line1=this is
line2=my second
line3=section
Is there a way to use the “file section” inspector but alter these delimiters, or alternatively, what is the most intuitive way to create relevance to determine that certain “values” are associated to certain “keys” under certain “labels”?
We are looking to do this because, generally, AIX uses the following formatting with it’s configuration files:
section_1:
line1 = thisis
line2 = myfirst
line3 = section
section_2:
line1 = thisis
line2 = mysecond
line3 = section
The file section inspector is PERFECT except that it appears to be hard-coded for [these] types of labels. Essentially, we are writing tasks that make config changes and in order for them to be proper “Fixlets” I have to determine the relevance to parse files such as these to make sure the config was properly updated.