Shell Script Help
Angelo Christou
christou44 at yahoo.com
Sun Jan 29 07:48:41 PST 2006
Hello Patrick,
Your suggestion works perfectly. Thank you very much for helping a learner such as myself.
Ang.
Proniewski Patrick <patrick.proniewski at univ-lyon2.fr> 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.
More information about the freebsd-questions
mailing list