From owner-freebsd-questions@FreeBSD.ORG Tue Oct 5 16:39:59 2004 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 8498F16A4CE for ; Tue, 5 Oct 2004 16:39:59 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDB5943D39 for ; Tue, 5 Oct 2004 16:39:58 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id i95Gdic15825; Tue, 5 Oct 2004 12:39:44 -0400 (EDT) From: Jerry McAllister Message-Id: <200410051639.i95Gdic15825@clunix.cl.msu.edu> To: mrb@bmyster.com Date: Tue, 5 Oct 2004 12:39:43 -0400 (EDT) In-Reply-To: <1357.65.175.209.179.1096993378.squirrel@new.host.name> from "Brent Bailey" at Oct 05, 2004 12:22:58 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: shell script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2004 16:39:59 -0000 > > i need to write a for-loop that will read the 1st line in a aliase file > and grep a passwd file for that user...if that user doesnt exsist in the > passwd file go the 2nd line and grep the passwd file for that user ...and > so on Use Perl or similar. It will be right up its alley. ////jerry > > anyone have any suggestions ? > -- > Brent Bailey >