How much more complex is a /bin/proccat that (for example) changes null
terminated key:value pairs into text? E.g. the proc files would contain
something like:
"key1\0val1\0key2\0val2\0..."
which would translate to:
key1 : val1
key2 : val2
...
Support for hierarchical entries, simple tables, etc doesn't make it much
bigger. Anything can appear in a field (including ':'), and the binary
version is trivially machine readable. /bin/proccat is likely to succeed
whenever /bin/cat would, so it is usable when your system is hosed.
---------------------------------------------------------------------------
Tim Hollebeek | Disclaimer :=> Everything above is a true statement,
Electron Psychologist | for sufficiently false values of true.
Princeton University | email: tim@wfn-shop.princeton.edu
----------------------| http://wfn-shop.princeton.edu/~tim (NEW! IMPROVED!)