Good Day,
I have a config file that has a segment which looks like -
I need to grep, let's say, for Sports and return the corresponding DB name, in this case, Database1. I can assume safely that the DB line is one above the Name=Sports line.
Any thoughts?
Regards,
Dan
I have a config file that has a segment which looks like -
Code:
[Database1]
Name=Sports
ExpireIntoDatabase=SportArchive
[Database2]
Name=Entertainment
I need to grep, let's say, for Sports and return the corresponding DB name, in this case, Database1. I can assume safely that the DB line is one above the Name=Sports line.
Any thoughts?
Regards,
Dan