Shell Script Help

Proniewski Patrick patrick.proniewski at univ-lyon2.fr
Sun Jan 29 07:24:00 PST 2006


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



More information about the freebsd-questions mailing list