From owner-freebsd-questions@FreeBSD.ORG Thu Jul 14 21:04:44 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7A8F16A41C for ; Thu, 14 Jul 2005 21:04:44 +0000 (GMT) (envelope-from jdyke@azimapower.com) Received: from extgw01.msys.intellispace.net (extgw01.msys.intellispace.net [160.79.150.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5491B43D46 for ; Thu, 14 Jul 2005 21:04:44 +0000 (GMT) (envelope-from jdyke@azimapower.com) Received: from malone.intellispace.net (malone.intellispace.net [160.79.145.141]) by extgw01.msys.intellispace.net (Postfix) with ESMTP id 6A962C3CC4; Thu, 14 Jul 2005 17:06:13 -0400 (EDT) Received: from [192.168.2.45] (66.9.108.98) by malone.intellispace.net (5.1.053) id 42D40555000F1327; Thu, 14 Jul 2005 17:03:08 -0400 Message-ID: <42D6D368.8040207@azimapower.com> Date: Thu, 14 Jul 2005 21:04:40 +0000 From: jdyke Organization: Azima Inc. User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tsampros Leonidas References: <20050714234428.GA1190@bifteki.lan> In-Reply-To: <20050714234428.GA1190@bifteki.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: using -t option with unix sort ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jdyke@azimapower.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 21:04:44 -0000 Tsampros Leonidas wrote: > On Thu, Jul 14, 2005 at 10:47:50AM -0700, Daniel Malaby wrote: > >> >>Nelis Lamprecht wrote: >> >>>On 7/14/05, Nelis Lamprecht wrote: >>> >>> >>>>On 7/14/05, Daniel Malaby wrote: >>>> > > > > >>E002 19085 GENERAL DYNAMICS 5031802 E-GL/VX/B/R1.0 SFT CD, GL VXWORKS BOREALIS R1.0 06/30/05 1 $995.00 $995.00 >>E016 19096 TGA INGENIERIA Y ELECTRONICS S 5881-2 E-AD600729C501 ARGUS PMC,2 DVI 16MB PERCHAN USB A/V 12/01/05 30 $2,312.00 $69,360.00 >>E016 19096 TGA INGENIERIA Y ELECTRONICS S 5881-2 E-DDX/SO/R4.0 SFT CD, DDX SOL 2.6-9 BOREALIS R4.0 12/01/05 30 $74.00 $2,220.00 >>E016 19096 TGA INGENIERIA Y ELECTRONICS S 5881-2 E-VIN/SO/R1.0 SFT CD, VID CAP SOL 2.6-9 BOREALIS R1.0 12/01/05 30 $74.00 $2,220.00 >>E021 19093 GANYMED COMPUTER GMBH 7103879 E-AD90073913011 GARNET PMC RIO8 C2, REAR I/O 16MB 07/19/05 2 $1,848.00 $3,696.00 >>E024 19080 DRS LAUREL TECHNOLOGIES 94358 E-AC7007121115A ECLIPSE3 PMC, VGA 16MB Q70 08/18/05 1 $846.00 $846.00 >>E024 19080 DRS LAUREL TECHNOLOGIES 94358 E-AC7007121115A ECLIPSE3 PMC, VGA 16MB Q70 10/19/05 19 $846.00 $16,074.00 >>E024 19080 DRS LAUREL TECHNOLOGIES 94358 E-AC7007121115A ECLIPSE3 PMC, VGA 16MB Q70 09/20/05 2 $846.00 $1,692.00 >>E024 19080 DRS LAUREL TECHNOLOGIES 94358 E-AC7007121115A ECLIPSE3 PMC, VGA 16MB Q70 11/17/05 7 $846.00 $5,922.00 > > > > Are you sure that these columns are tab delimited ? likely not, but sort will grab each white space delimited column, so if INGENIERIA Y ELECTRONICS is really a single value, you're not going to be able to sort that with say `cat file | sort +4` i think i may have missed some of this thread, but this document would likely need some formatting with sed(1) before sort could do its magic. with sed, using the substitute operator, you could grab the proper colmns, wrap them in quotes and pass that to sort. the -t operator, passed a tab as in earier mails will not work as tab is still a blank to non blank transistion. hth jeff > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >