[YLUG][OT] alternatives to seq when scripting for loops

Richard G. Clegg richard at richardclegg.org
Fri Nov 17 16:02:59 GMT 2006


Rachel Cavill wrote:

> I've tried an equivalent bash solution using a while loop and
> incrementing instead of a forloop - but I'm having problems with the
> fact that I don't want to use integers.  The loop works fine if I set
> everything to integer values, but the minute I try to use real values
> I'm getting error messages.
> 
> I know I'm missing something obvious here, but what is it?

Use an integer loop and multiply by an appropriate constant?

Weren't you in the maths dept at one point or do I have the wrong 
Rachel?  :-)

-- 
Richard G. Clegg,
http://www.richardclegg.org/



More information about the York mailing list