The requirement is read a configuration file, get all the information and make a spread sheet. I am able to get all above given information with ":" delimeter but when I am creating .csv file I am getting all data in a single column while I want separate column for each field. I searched over internet but did not get any solution.
It might help you to know that "CSV" stands for "comma separated value", not "colon separated value". Replace the colon separators with comma (or semicolon) separators and Excel should have no problems separating the fields into separate cells.
You might want to read RFC 4180 ("Common Format and MIME Type for Comma-Separated Values (CSV) Files") for more information about delimiter-separated file formats.
I haven't bothered to try to understand this, it is definitely wrong. sed ... | sed ... is never corect because it could be written as a single command, same goes for awk .. | sed .. .
Provide a sample output of one of these "abc.conf" files you are searching for and explain how it should be transformed to what you want to achieve. Most probably a single awk- or sed-command will suffice.
Hi Bakunin,
The scenario is; there are multiple directories and inside the directories there would be a conf file called "abc.conf". I need to get some information from the conf file and export the information to an excel file. (Note: one info in one column).
example of abc.conf: