From: Chuck Campbell Subject: Re: simple awk question Date: Mon, 20 Oct 2003 15:19:37 -0500 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20031020201937.GA14653@helium.inexs.com> References: <20031020081758.GA14027@fede2.tumsan.fi> Reply-To: campbell@accelinc.com Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20031020081758.GA14027@fede2.tumsan.fi> List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: urgrue Cc: admin On Mon, Oct 20, 2003 at 11:17:58AM +0300, urgrue wrote: > how can i print all BUT the last field. ie something like: > echo one.two.three.four | awk -F "." '{print }' > =one.two.three echo one.two.three.four | awk -F "." \ '{for (i=1; i