Date: Mon, 17 Apr 2006 19:27:15 +0200 From: "Svein Halvor Halvorsen" <svein.h@lvor.halvorsen.cc> To: "Erik Norgaard" <norgaard@locolomo.org> Cc: questions@freebsd.org Subject: Re: getting a user's home dir (sed/awk?) Message-ID: <bbe90d1d0604171027i2e2c31ccnc337ce3a50d07c22@mail.gmail.com> In-Reply-To: <4443C6D6.3040707@locolomo.org> References: <4443C6D6.3040707@locolomo.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4/17/06, Erik Norgaard <norgaard@locolomo.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bbe90d1d0604171027i2e2c31ccnc337ce3a50d07c22>