From owner-freebsd-questions@FreeBSD.ORG Mon Apr 17 17:27:16 2006 Return-Path: X-Original-To: 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 F300C16A400 for ; Mon, 17 Apr 2006 17:27:16 +0000 (UTC) (envelope-from sveinhal@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8504D43D53 for ; Mon, 17 Apr 2006 17:27:16 +0000 (GMT) (envelope-from sveinhal@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so356212wxc for ; Mon, 17 Apr 2006 10:27:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OgBE0I6LT3Z6bGe808pZ/FsqVaXyodPa3V9Bq50ReItUvBfMQNagixHFGIEqPtX4pij91C+VDgElvSZdiwujlPjHMjIjgvMNNIXmoT55H4ZEG3EoR+mLQgPYmLBCFls/IIZu3XgxiPND2qnRCPyDS4uPQYfhMSQpth9jO5JksRA= Received: by 10.70.97.19 with SMTP id u19mr1397750wxb; Mon, 17 Apr 2006 10:27:15 -0700 (PDT) Received: by 10.70.117.5 with HTTP; Mon, 17 Apr 2006 10:27:15 -0700 (PDT) Message-ID: Date: Mon, 17 Apr 2006 19:27:15 +0200 From: "Svein Halvor Halvorsen" Sender: sveinhal@gmail.com To: "Erik Norgaard" In-Reply-To: <4443C6D6.3040707@locolomo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4443C6D6.3040707@locolomo.org> Cc: questions@freebsd.org Subject: Re: getting a user's home dir (sed/awk?) 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: Mon, 17 Apr 2006 17:27:17 -0000 On 4/17/06, Erik Norgaard wrote: > I have found "pw usershow user1" will return a line from the passwd > file, but that needs to be split chewed, and spit out. Seems awk can do > it but I have no clue. cut is probably about the cheapest way to split a line: pw usershow user1 | cut -d: -f9 Svein Halvor