From owner-freebsd-questions Wed Apr 17 19:14:27 2002 Delivered-To: freebsd-questions@freebsd.org Received: from titus.lastamericanempire.com (dsl081-101-239.den1.dsl.speakeasy.net [64.81.101.239]) by hub.freebsd.org (Postfix) with ESMTP id B5AA737B405 for ; Wed, 17 Apr 2002 19:14:25 -0700 (PDT) Received: by titus.lastamericanempire.com (Postfix, from userid 1000) id 77D9320F6A; Wed, 17 Apr 2002 20:22:38 -0600 (MDT) Date: Wed, 17 Apr 2002 20:22:38 -0600 From: Zach Thompson To: Taylor Dondich Cc: questions@FreeBSD.ORG Subject: Re: More of a scripting question I guess. Message-ID: <20020417202238.A35897@lastamericanempire.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i 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 * Taylor Dondich [020417 20:03]:: > 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). perl -nle '`some_command`' email.txt Depending on the command(s), there may be a Perl builtin instead of backticking. Zach Thompson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message