On 01/28/10 12:58 PM, Gary Pennington wrote:
Hi Danek,
Without calculating the maximum width of the output data fields, it's
not possible to ensure that headers and data are correctly aligned when
the data is tab separated.
I can accept that there's no need to make headers align with data when
the output is specified as -F tsv, but surely it's a good thing if it
is? Otherwise there would be no point in ever requesting that headers are
present with parseable data, in which case I would be back at the solution
that I supplied yesterday.
There's no reason to align the output if it is tab separated; it's a
parseable, although not necessarily human-parseable format.
If you were to dump the tsv output (with headers) to a file and open
that with a spreadsheet program, or had code that parsed it, it should
be able to discern which headers go with which values.
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss