From owner-freebsd-questions@FreeBSD.ORG Wed Oct 21 23:58:26 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F6591065670 for ; Wed, 21 Oct 2009 23:58:26 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 00F598FC0A for ; Wed, 21 Oct 2009 23:58:25 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1N0l4T-0002dU-As for freebsd-questions@freebsd.org; Wed, 21 Oct 2009 16:58:25 -0700 Message-ID: <26002100.post@talk.nabble.com> Date: Wed, 21 Oct 2009 16:58:25 -0700 (PDT) From: Tom Worster To: freebsd-questions@freebsd.org In-Reply-To: <20091021231030.81DCABE77@kev.msw.wpafb.af.mil> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: fsb@thefsb.org References: <25979622.post@talk.nabble.com> <20091021231030.81DCABE77@kev.msw.wpafb.af.mil> Subject: Re: Display TSV files with columns aligned X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Oct 2009 23:58:26 -0000 Karl Vogel-3 wrote: > >>> On Tue, 20 Oct 2009 10:55:07 -0700 (PDT), >>> Tom Worster 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.