From: Chuck Campbell Subject: Re: simple awk question Date: Mon, 20 Oct 2003 16:09:55 -0500 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20031020210955.GA14839@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 Sorry, I didn't test my first one. Your syntax for calling awk was wrong, and I blindly copied it when I put in my recipe. This: echo one.two.three.four | awk -F "." \ '{for (i=1; i