Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2002 20:59:26 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Taylor Dondich <thexder@lvcm.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: More of a scripting question I guess.
Message-ID:  <20020418015926.GI72244@dan.emsphone.com>
In-Reply-To: <000901c1e678$bc14fa80$6600a8c0@penguin>
References:  <000901c1e678$bc14fa80$6600a8c0@penguin>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020418015926.GI72244>