View Single Post
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#47
Originally Posted by epitaph View Post
That's not what I'm talking about. It's Linux and you want to write a script with sed and awk and grep and pipe it to stdout. What's the problem with this?
The problem with it is some ****** made it an XML file instead of a flat file like all config files were meant to be.

That makes your script either horrendously complex (implement a proper XML parser in awk) or ugly hackery (depend on the formatting details characteristic of how MicroB outputs it, rather than the XML's formatting-indifferent structure).

XML config files: a solution in search of a problem! Crushing souls and fighting the UNIX way since... well, whenever the !@#$ *****s started using them.