From owner-freebsd-questions@FreeBSD.ORG Mon Jan 5 18:26:10 2004 Return-Path: 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 0910916A4CE for ; Mon, 5 Jan 2004 18:26:10 -0800 (PST) Received: from madras.dyndns.org (dsl-137.241.240.220.dsl.comindico.com.au [220.240.241.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB09E43D55 for ; Mon, 5 Jan 2004 18:26:04 -0800 (PST) (envelope-from ggop@madras.dyndns.org) Received: from madras.dyndns.org (localhost [127.0.0.1]) by madras.dyndns.org (8.12.9p1/8.12.9) with ESMTP id i062Of7v008256; Tue, 6 Jan 2004 13:24:42 +1100 (EST) (envelope-from ggop@madras.dyndns.org) Received: (from ggop@localhost) by madras.dyndns.org (8.12.9p1/8.12.9/Submit) id i062OdfF008251; Tue, 6 Jan 2004 13:24:39 +1100 (EST) Date: Tue, 6 Jan 2004 13:24:38 +1100 From: Gautam Gopalakrishnan To: Malcolm Kay Message-ID: <20040106022438.GB8122@madras.dyndns.org> References: <200401061230.42038.malcolm.kay@internode.on.net> <20040106022052.GA8122@madras.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040106022052.GA8122@madras.dyndns.org> User-Agent: Mutt/1.4.1i cc: Zhang Weiwu cc: questions@freebsd.org cc: zhangweiwu@realss.com Subject: Re: help me with this sed expression X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2004 02:26:10 -0000 On Tue, Jan 06, 2004 at 01:20:52PM +1100, Gautam Gopalakrishnan wrote: > I think awk is easier: > > awk '{print $2 " " $3 " " $1}' original | tr -s > target Sorry, that must read: awk '{print $2 " " $3 " " $1}' original | tr -s ' ' > target