Date: 18 Apr 2002 02:00:16 -0300 From: "Jim C." <notjames@snafu.concon.homeip.net> To: Dan Nelson <dnelson@allantgroup.com> Cc: Taylor Dondich <thexder@lvcm.com>, questions@FreeBSD.ORG Subject: Re: More of a scripting question I guess. Message-ID: <1019106016.72577.27.camel@snafu.concon.homeip.net> In-Reply-To: <20020418015926.GI72244@dan.emsphone.com> References: <000901c1e678$bc14fa80$6600a8c0@penguin> <20020418015926.GI72244@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1019106016.72577.27.camel>
