From owner-freebsd-questions@FreeBSD.ORG Wed Oct 8 05:41:58 2008 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09CBF106568A for ; Wed, 8 Oct 2008 05:41:58 +0000 (UTC) (envelope-from kalpin@muliahost.com) Received: from smtp.velo.net.id (smtp2-out.velo.net.id [203.153.99.105]) by mx1.freebsd.org (Postfix) with ESMTP id B02C68FC0A for ; Wed, 8 Oct 2008 05:41:57 +0000 (UTC) (envelope-from kalpin@muliahost.com) Received: from localhost (batubulan.net2cyber.net [127.0.0.1]) by smtp.velo.net.id (Postfix) with ESMTP id BFE168100A9 for ; Wed, 8 Oct 2008 12:11:45 +0700 (WIT) X-Virus-Scanned: amavisd-new at velo.net.id Received: from smtp.velo.net.id ([127.0.0.1]) by localhost (seminyak.velo.net.id [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iUuawXgf6ql0 for ; Wed, 8 Oct 2008 12:11:43 +0700 (WIT) Received: from [203.153.106.5] (DALnet.tranquillity.se [203.153.106.5]) by smtp.velo.net.id (Postfix) with ESMTP id A9C3D8100BA for ; Wed, 8 Oct 2008 12:11:39 +0700 (WIT) Message-ID: <48EC410C.2030707@muliahost.com> Date: Wed, 08 Oct 2008 12:11:40 +0700 From: Kalpin Erlangga Silaen User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=EUC-KR Content-Transfer-Encoding: 7bit Cc: Subject: bash script on FreeBSD 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: Wed, 08 Oct 2008 05:41:58 -0000 Dear all, 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? Thank you Kalpin Erlangga Silaen