Date: Wed, 17 Apr 2002 21:34:00 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Michael E Mercer <mmercer@nc.rr.com> Cc: Taylor Dondich <thexder@lvcm.com>, questions@FreeBSD.ORG Subject: Re: More of a scripting question I guess. Message-ID: <20020418023400.GJ72244@dan.emsphone.com> In-Reply-To: <3CBE2F51.41E19E8A@nc.rr.com> References: <000901c1e678$bc14fa80$6600a8c0@penguin> <20020418015926.GI72244@dan.emsphone.com> <3CBE2F51.41E19E8A@nc.rr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Apr 17), Michael E Mercer said: > another way to do it is this with the same outcome: > > while read address ; do > somecommand $address > done < file.txt But that puts the input file at the end of the command, which makes it harder to see where the input is coming from, especially if you have a lot of stuff in your loop. -- 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?20020418023400.GJ72244>