On Monday 23 Jun 2003 11:10 pm, John Richard Smith wrote:
> Tom Brinkman wrote:
> >On Monday June 23 2003 02:48 pm, John Richard Smith wrote:
> >> modules=`grep \^MODULE_ $CONFIG | wc -l`
> >> i=`expr$Pmodules`
> >> while [ $i -ge 0 ] ; do <line 73>
> >maybe add'n a space, ie,
> >i=`expr $modules`
> but if anyone out there happens to know what to amend without me
> having to dig around for it so much the better.
I'd go with Tom. That looks right. $modules is a string holding the
number of modules. ("wc -l" outputs a single number.) Line 72 converts
that to a number in $i which is then used as a loop counter. So the
correct form of line 72 is as I have quoted above.
--
Richard Urwin
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com