On 06/02/10 15:01, Robert Jenkins wrote:
Hi,
(First patch submission, apologies for any errors).
As of coreutils 8.4, df's column alignments still get messy with larger
filesystems, 1TB& up.
This patch adjusts the column spacings to maintain vertical alignment.
I've tried it with various display format options and as far as I can see it
works correctly.
Tested on a Centos 5.4 x86_64 system
Thanks for that.
However I think we need something more general than adding another space.
Consider for example the output from: df -B\'1
One can pipe the output to `column -t` and it's much more readable.
However doing more general alignment within df is still useful I think because:
Numbers would be aligned right
Spaces within (translated) column headings would be handled
No dependence on the non standardized `column` utility
We intend to work on that at some stage, but any ideas/patches are welcome.
cheers,
Pádraig.