Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Oct 2009 16:58:25 -0700 (PDT)
From:      Tom Worster <fsb@thefsb.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Display TSV files with columns aligned
Message-ID:  <26002100.post@talk.nabble.com>
In-Reply-To: <20091021231030.81DCABE77@kev.msw.wpafb.af.mil>
References:  <25979622.post@talk.nabble.com> <20091021231030.81DCABE77@kev.msw.wpafb.af.mil>

next in thread | previous in thread | raw e-mail | index | archive | help


Karl Vogel-3 wrote:
> 
>>> On Tue, 20 Oct 2009 10:55:07 -0700 (PDT), 
>>> Tom Worster <fsb@thefsb.org> said:
> 
> T> is there a cli command that lays out tsv files for display with a fixed
> T> width font?  that is, it figures how wide each column needs to be and
> T> pads each field in the file with a suitable amount of space?
> 
>    http://www.cs.indiana.edu/~kinzler/align/
> 
>    Align is a general-purpose text filter tool that helps vertically align
>    columns in string-separated tables of input text.  You can direct how
>    the columns are separated on input and rejoined in the aligned output.
>    It's great.
> 

ooooh, that was close!

if only it had a way to truncate fields in a column that has a few really
long strings in it.

thanks for pointing me to it. i'll see if i can't figure out the script and
how to modify it to add this trick. (perl for beginners.)
-- 
View this message in context: http://www.nabble.com/Display-TSV-files-with-columns-aligned-tp25979622p26002100.html
Sent from the freebsd-questions mailing list archive at Nabble.com.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?26002100.post>