On Thu, Jul 22, 2010 at 12:17 PM, Horst H. von Brand
<vonbr...@inf.utfsm.cl> wrote:
> Great to know about that. And yes, it  is extremely relevant for a sysadmin
> to know how to tickle the system so it spits out awk(1)-able logs and stuff.


Hmm... can these tools learn to prefer a certain format when they are
piped into another program and then prefer a different format when
they are just outputting to an active console. And then the preferred
behaviour can be overridden when specific commandline arguments are
present?  Don't other tools exhibit this sort of functionality?

foo show | awk    would assume one line awkable output
foo show            would assume human readable
foo show -1         would force one line awkable output
foo show -v | awk         would force human readable into awk

or some such.

-jef
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to