Posts tagged “python”

Using namedtuple as a poorman's parser

I needed to parse the routing tables, therefore I needed to parse the command route which gives an output similar to something like this. Kernel IP routing tableDestination Gateway Genmask Flags Me...