From owner-freebsd-questions Thu Apr 18 0:40:29 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail5.carolina.rr.com (fe5.southeast.rr.com [24.93.67.52]) by hub.freebsd.org (Postfix) with ESMTP id 5303B37B404 for ; Thu, 18 Apr 2002 00:40:23 -0700 (PDT) Received: from [192.168.100.13] ([66.57.159.198]) by mail5.carolina.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Thu, 18 Apr 2002 00:37:43 -0400 Subject: Re: More of a scripting question I guess. From: "Jim C." To: Dan Nelson Cc: Taylor Dondich , questions@FreeBSD.ORG In-Reply-To: <20020418015926.GI72244@dan.emsphone.com> References: <000901c1e678$bc14fa80$6600a8c0@penguin> <20020418015926.GI72244@dan.emsphone.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 Date: 18 Apr 2002 02:00:16 -0300 Message-Id: <1019106016.72577.27.camel@snafu.concon.homeip.net> Mime-Version: 1.0 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 On Wed, 2002-04-17 at 22:59, Dan Nelson wrote: > 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 > A less resource intensive way (albeit not much less) while read line;do process $line done < file,txt - Jim > -- > Dan Nelson > dnelson@allantgroup.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message