Hello Patrick,

Your suggestion works perfectly. Thank you very much for helping a learner such 
as myself.

Ang.



Proniewski Patrick <[EMAIL PROTECTED]> wrote: 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
-- 
Administrateur Syst�me - SENTIER - Universit� Lumi�re Lyon 2




                
---------------------------------
Do you Yahoo!?
 With a free 1 GB, there's more in store with Yahoo! Mail.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to