Date: Sun, 29 Jan 2006 16:24:19 +0100 From: Proniewski Patrick <patrick.proniewski@univ-lyon2.fr> To: Angelo Christou <christou44@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: Shell Script Help Message-ID: <2FCC7C5D-B26E-4337-93EF-A590E0C518EE@univ-lyon2.fr> In-Reply-To: <20060129151016.96211.qmail@web37109.mail.mud.yahoo.com> References: <20060129151016.96211.qmail@web37109.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail-3--820213746 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 29 janv. 06, at 16:10, Angelo Christou wrote: > list.txt contains: > > bob home 9002 > jim data 9005 > Running the following for each line is what I'm trying to do: > myprogram bob home 9002 > myprogram jim data 9005 > and so on...... give this a try: while read myline; do set -- $myline myprogram $1 $2 $3 done < list.txt Patrick PRONIEWSKI --=20 Administrateur Syst=E8me - SENTIER - Universit=E9 Lumi=E8re Lyon 2 --Apple-Mail-3--820213746--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2FCC7C5D-B26E-4337-93EF-A590E0C518EE>