Date: Wed, 17 Apr 2002 22:28:33 -0400 From: Michael E Mercer <mmercer@nc.rr.com> 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: <3CBE2F51.41E19E8A@nc.rr.com> References: <000901c1e678$bc14fa80$6600a8c0@penguin> <20020418015926.GI72244@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
another way to do it is this with the same outcome: while read address ; do somecommand $address done < file.txt 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 > > -- > 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?3CBE2F51.41E19E8A>