Date: Fri, 8 Jul 2005 13:28:41 -0400 From: Louis LeBlanc <FreeBSD@keyslapper.net> To: freebsd-questions@freebsd.org Subject: Re: a sort ? Message-ID: <20050708172841.GK40261@keyslapper.net> In-Reply-To: <42CEAF1E.5010603@malaby.com> References: <42CEAF1E.5010603@malaby.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On 07/08/05 09:51 AM, Daniel Malaby sat at the `puter and typed:
> Hi All,
>
> 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.
>
> Things I have tried:
>
> 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"
>
> 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
--
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 = 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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)
iD8DBQFCzrfJr4Wi/oDI2aIRAjPkAJ0fSkQbskDvdT10Mu5ofrLpQzCoAACbBb4+
tPM51bNe3KHqEjJkjBeY34U=
=3glf
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050708172841.GK40261>
