From owner-freebsd-questions@FreeBSD.ORG Sun Aug 6 22:10:32 2006 Return-Path: X-Original-To: freebsd-questions@FreeBSD.ORG 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 66AC416A4F1 for ; Sun, 6 Aug 2006 22:10:32 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id D157543D4C for ; Sun, 6 Aug 2006 22:10:29 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.4/8.13.1) with ESMTP id k76MAMAb001052 for ; Sun, 6 Aug 2006 15:10:27 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.4/8.13.1/Submit) id k76MAGod001050 for freebsd-questions@FreeBSD.ORG; Sun, 6 Aug 2006 15:10:16 -0700 (PDT) (envelope-from kline) Date: Sun, 6 Aug 2006 15:10:16 -0700 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20060806221015.GA1039@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing twenty years of service to the Unix community Cc: Subject: awk quickie. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Aug 2006 22:10:32 -0000 Guys, Can aanybody spot what I'm doing wrong in this tiny awk scripy:: #!/usr/bin/awk BEGIN { FS = ":" printf("%s\n", $1) } END I've got a bunch of grepped output that has things like foo: foo: foo: bar: bar: bar: and I want to pick out just the filename. thanks for any insights! gary -- Gary Kline kline@thought.org www.thought.org Public service Unix