Date: Tue, 20 Nov 2001 18:25:34 +0100 From: Udo Schweigert <udo.schweigert@siemens.com> To: Wayne Pascoe <freebsd@molemanarmy.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Sort Message-ID: <20011120172533.GA41469@alaska.cert.siemens.de> In-Reply-To: <86r8qt7gjq.fsf@pan.ehsrealtime.com> References: <86r8qt7gjq.fsf@pan.ehsrealtime.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 20, 2001 at 12:50:01 +0000, Wayne Pascoe wrote: > Hi all, > > I have a cvs file as follows : > > id,first_name,last_name,company_name > > I want to sort this on first name. Doing > cat file.csv | sort > sorts starting at the beginning of the line. sort -t , -k 2 < file.csv ("man sort" is your friend ;-) Best regards -- Udo Schweigert, Siemens AG | Voice : +49 89 636 42170 CT IC 3, Siemens CERT | Fax : +49 89 636 41166 D-81730 Muenchen / Germany | email : udo.schweigert@siemens.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011120172533.GA41469>