From owner-freebsd-questions@FreeBSD.ORG Fri Jul 8 17:28:51 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 8D47B16A41C for ; Fri, 8 Jul 2005 17:28:51 +0000 (GMT) (envelope-from leblanc@keyslapper.net) Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25F1743D48 for ; Fri, 8 Jul 2005 17:28:50 +0000 (GMT) (envelope-from leblanc@keyslapper.net) Received: from russian-caravan.cloud9.net (localhost [127.0.0.1]) by russian-caravan.cloud9.net (Postfix) with SMTP id 5506A15464 for ; Fri, 8 Jul 2005 13:28:42 -0400 (EDT) Received: from keyslapper.net (250-119.customer.cloud9.net [168.100.250.119]) by russian-caravan.cloud9.net (Postfix) with ESMTP id E816D15239 for ; Fri, 8 Jul 2005 13:28:41 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by keyslapper.net (Postfix) with ESMTP id 99EB611686 for ; Fri, 8 Jul 2005 13:28:41 -0400 (EDT) Received: from keyslapper.net ([127.0.0.1]) by localhost (keyslapper.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 42903-07 for ; Fri, 8 Jul 2005 13:28:41 -0400 (EDT) Received: by keyslapper.net (Postfix, from userid 1001) id 6E47A115DB; Fri, 8 Jul 2005 13:28:41 -0400 (EDT) Date: Fri, 8 Jul 2005 13:28:41 -0400 From: Louis LeBlanc To: freebsd-questions@freebsd.org Message-ID: <20050708172841.GK40261@keyslapper.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <42CEAF1E.5010603@malaby.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline In-Reply-To: <42CEAF1E.5010603@malaby.com> X-PGP-Key: http://www.keyslapper.net/~leblanc/leblanc-at-keyslapper-net.asc User-Agent: Mutt/1.5.9i X-Virus-Scanned: amavisd-new at keyslapper.net X-AntiVirus: Checked by Vexira Antivirus v1.5 Subject: Re: a sort ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2005 17:28:51 -0000 --/04w6evG8XlLl3ft Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 07/08/05 09:51 AM, Daniel Malaby sat at the `puter and typed: > Hi All, >=20 > I am trying to sort a tab delimited file with sort. The problem I am > having is with the -t option. I can not get it to accept a tab. >=20 > Things I have tried: >=20 > sort -t \t > sort -t '\t' > sort -t "\t" > sort -t 0x09 > sort -t '0x09' > sort -t "0x09" > sort -t ^I > sort -t '^I' > sort -t "^I" >=20 > Any suggestions would be much appreciated. Did you try sorting without the -t parameter? IIRC, it uses whitespace to delimit fields by default, which includes the tab. Unless you're trying to sort by a field other than the first, you really don't need it anyway. Then again, you could also just hit the tab key: -t ' '. HTH Lou --=20 Louis LeBlanc FreeBSD-at-keyslapper-DOT-net Fully Funded Hobbyist, KeySlapper Extrordinaire :) Please send off-list email to: leblanc at keyslapper d.t net Key fingerprint =3D C5E7 4762 F071 CE3B ED51 4FB8 AF85 A2FE 80C8 D9A2 Genius doesn't work on an assembly line basis. You can't simply say, "Today I will be brilliant." -- Kirk, "The Ultimate Computer", stardate 4731.3 --/04w6evG8XlLl3ft Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCzrfJr4Wi/oDI2aIRAjPkAJ0fSkQbskDvdT10Mu5ofrLpQzCoAACbBb4+ tPM51bNe3KHqEjJkjBeY34U= =3glf -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft--