From owner-freebsd-questions Fri Feb 28 14:18:08 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA21126 for questions-outgoing; Fri, 28 Feb 1997 14:18:08 -0800 (PST) Received: from rwd.com (mail.rwd.com [198.252.128.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA21118 for ; Fri, 28 Feb 1997 14:17:56 -0800 (PST) Received: from columbia.rwd.com (columbia.rwd.com [198.252.128.8]) by rwd.com (8.7.5/8.7.3) with SMTP id RAA21657 for ; Fri, 28 Feb 1997 17:19:54 -0500 (EST) Received: by columbia.rwd.com with SMTP (Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63) id <01BC259A.595A6960@columbia.rwd.com>; Fri, 28 Feb 1997 17:10:51 -0500 Message-ID: From: "Heller, David" To: "'FreeBSD Support'" Subject: Sorting Problem Date: Fri, 28 Feb 1997 17:10:50 -0500 X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Hello, I am trying to sort a sendmail aliases file. I would like to sort each line on the second character of the first field. The results are always sorted on the first character of the first field. The version of sort is GNU 1.9. Each line in the aliases file looks like this: jdoe:jdoe@columbia.rwd.com I have tried the sort command in the following ways: sort -t : -o newfile -k 1,2 aliases sort -t : -o newfile -k 1,3 aliases sort -t : -o newfile +0 -3 aliases Any input would be greatly appreciated. Thank you. Dheller@rwd.com