From owner-freebsd-questions@FreeBSD.ORG Wed Feb 23 21:40:11 2005 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 58B6916A4CE for ; Wed, 23 Feb 2005 21:40:11 +0000 (GMT) Received: from teancum.pp.asu.edu (teancum.pp.asu.edu [129.219.69.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1870943D49 for ; Wed, 23 Feb 2005 21:40:11 +0000 (GMT) (envelope-from iddwb@teancum.pp.asu.edu) Received: from teancum.pp.asu.edu (localhost.localdomain [127.0.0.1]) by teancum.pp.asu.edu (8.12.11/8.12.11) with ESMTP id j1NLeAuP031020 for ; Wed, 23 Feb 2005 14:40:10 -0700 Received: (from iddwb@localhost) by teancum.pp.asu.edu (8.12.11/8.12.11/Submit) id j1NLeA6P031018 for freebsd-questions@freebsd.org; Wed, 23 Feb 2005 14:40:10 -0700 Date: Wed, 23 Feb 2005 14:40:10 -0700 From: David Bear To: freebsd-questions@freebsd.org Message-ID: <20050223214010.GA31005@asu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: awk print X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David.Bear@asu.edu List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2005 21:40:11 -0000 I'm using awk to parse a directory listing. I was hoping there is a way to tell awk to print from $2 - to the end of the columns available. find ./ -name '*stuff' | awk '{FS="/" print $3---'} the $3-- I want to mean -- print from col 3 to the end. Any awk pros? -- David Bear phone: 480-965-8257 fax: 480-965-9189 College of Public Programs/ASU Wilson Hall 232 Tempe, AZ 85287-0803 "Beware the IP portfolio, everyone will be suspect of trespassing"