From owner-freebsd-questions@FreeBSD.ORG Tue Oct 5 16:27:10 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 8965B16A4CE for ; Tue, 5 Oct 2004 16:27:10 +0000 (GMT) Received: from bmyster.com (loqtis.bmyster.com [66.55.195.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2AB843D1F for ; Tue, 5 Oct 2004 16:27:09 +0000 (GMT) (envelope-from mrb@bmyster.com) Received: from loqtis.bmyster.com (localhost.bmyster.com [127.0.0.1]) by bmyster.com (8.12.11/8.12.11) with ESMTP id i95GN3H6049952 for ; Tue, 5 Oct 2004 12:23:07 -0400 (EDT) Received: (from www@localhost) by loqtis.bmyster.com (8.12.11/8.12.11/Submit) id i95GMwSk049951; Tue, 5 Oct 2004 12:22:58 -0400 (EDT) X-Authentication-Warning: loqtis.bmyster.com: www set sender to mrb@bmyster.com using -f Received: from 65.175.209.179 (SquirrelMail authenticated user mrb) by new.host.name with HTTP; Tue, 5 Oct 2004 12:22:58 -0400 (EDT) Message-ID: <1357.65.175.209.179.1096993378.squirrel@new.host.name> Date: Tue, 5 Oct 2004 12:22:58 -0400 (EDT) From: "Brent Bailey" To: questions@freebsd.org User-Agent: SquirrelMail/1.4.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal Subject: shell script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mrb@bmyster.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2004 16:27:10 -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 anyone have any suggestions ? -- Brent Bailey