Date: Wed, 8 Oct 2008 10:00:40 +0300 From: "Artis Caune" <artis.caune@gmail.com> To: "Kalpin Erlangga Silaen" <kalpin@muliahost.com> Cc: freebsd-questions@freebsd.org Subject: Re: bash script on FreeBSD Message-ID: <9e20d71e0810080000g7720cba3je2d734fd30c01e45@mail.gmail.com> In-Reply-To: <48EC410C.2030707@muliahost.com> References: <48EC410C.2030707@muliahost.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 8, 2008 at 8:11 AM, Kalpin Erlangga Silaen <kalpin@muliahost.com> wrote: > I am going to extract field username and UID from /etc/passwd and passed > into some scripts. Let say I got line > > admin 100 > admin2 200 > admin3 300 > admin4 400 > > and then I want to echoing into screen: > > admin has uid 100 > admin2 has uid 200 > admin3 has uid 300 > admin4 has uid 400 > > How do I make this with bash script? # echo $line |awk '{ print $1 " has uid " $2 }' -- regards, Artis Caune <----. CCNA | BSDA <----|==================== <----' didii FreeBSD
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9e20d71e0810080000g7720cba3je2d734fd30c01e45>