From owner-freebsd-questions@FreeBSD.ORG Wed Oct 21 23:52:53 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 84014106568D for ; Wed, 21 Oct 2009 23:52:53 +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 55FE08FC2C for ; Wed, 21 Oct 2009 23:52:53 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1N0kz6-0002Lf-9c for freebsd-questions@freebsd.org; Wed, 21 Oct 2009 16:52:52 -0700 Message-ID: <26002056.post@talk.nabble.com> Date: Wed, 21 Oct 2009 16:52:52 -0700 (PDT) From: Tom Worster To: freebsd-questions@freebsd.org In-Reply-To: <20091020190019.GJ29215@dan.emsphone.com> 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> <20091020190019.GJ29215@dan.emsphone.com> 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:52:53 -0000 Dan Nelson wrote: > > In the last episode (Oct 20), Tom Worster said: >> is there a cli command that lays out tsv files for display with a fixed >> width font? >> >> that is, it figures how wide each column needs to be and pads each field >> in the file with a suitable about of space? > > The "rs" command should do what you want, if you can figure out the > correct > commandline options. It's not easy, though... > thanks dan. i spent a happy while reading the rs man page over and over, trying every every combination of flag. afaict, rs wants to make all the columns the same width. that doesn't work for me. a typical data file i want to review might have 6 columns, 5 of which are limited width and fairly narrow while the other other varies from one character to needing a widescreen 27" display. so the other feature i need is truncation of the rare extra-long values in that last column. if i knew perl... -- View this message in context: http://www.nabble.com/Display-TSV-files-with-columns-aligned-tp25979622p26002056.html Sent from the freebsd-questions mailing list archive at Nabble.com.