From owner-freebsd-questions@FreeBSD.ORG Tue Oct 5 16:27:16 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 7DE9316A4D1 for ; Tue, 5 Oct 2004 16:27:16 +0000 (GMT) Received: from bmyster.com (loqtis.bmyster.com [66.55.195.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id F241743D46 for ; Tue, 5 Oct 2004 16:27:15 +0000 (GMT) (envelope-from misterb@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 i95GNDOx049958 for ; Tue, 5 Oct 2004 12:23:13 -0400 (EDT) Received: (from www@localhost) by loqtis.bmyster.com (8.12.11/8.12.11/Submit) id i95GN8H1049957; Tue, 5 Oct 2004 12:23:08 -0400 (EDT) X-Authentication-Warning: loqtis.bmyster.com: www set sender to misterb@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:23:08 -0400 (EDT) Message-ID: <1358.65.175.209.179.1096993388.squirrel@new.host.name> Date: Tue, 5 Oct 2004 12:23:08 -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: misterb@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:16 -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