From owner-freebsd-questions Wed Apr 17 18:59:30 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 6DD3A37B405 for ; Wed, 17 Apr 2002 18:59:28 -0700 (PDT) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.12.2/8.12.2) with ESMTP id g3I1xQRE075084; Wed, 17 Apr 2002 20:59:27 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.2/8.12.2/Submit) id g3I1xQfJ075083; Wed, 17 Apr 2002 20:59:26 -0500 (CDT) Date: Wed, 17 Apr 2002 20:59:26 -0500 From: Dan Nelson To: Taylor Dondich Cc: questions@FreeBSD.ORG Subject: Re: More of a scripting question I guess. Message-ID: <20020418015926.GI72244@dan.emsphone.com> References: <000901c1e678$bc14fa80$6600a8c0@penguin> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000901c1e678$bc14fa80$6600a8c0@penguin> User-Agent: Mutt/1.3.28i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Apr 17), Taylor Dondich said: > I've got a list of e-mail addresses in a text file. I'd like to > process a command on EACH of those addresses with a program on my BSD > box. I don't know a lick or two or shell programming (I'd think you > can get it done with this). cat file.txt | while read address ; do somecommand $address done -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message