Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!acorn!steve From: steve@acorn.co.uk (Steve "daffy" Hunt) Newsgroups: comp.unix.shell Subject: Re: SUMMARY Re: sh loop variable and "double indirection" Message-ID: <5081@acorn.co.uk> Date: 11 Feb 91 18:11:45 GMT References: <1991Feb5.003613.21081@shibaya.lonestar.org> Organization: Acorn Computers Ltd, Cambridge, UK Lines: 26 In article <1991Feb5.003613.21081@shibaya.lonestar.org> afc@shibaya.lonestar.org (Augustine Cano) writes: > > >I didn't anticipate the great response I got to my questions. This >newsgroup is an important resource. Many thanks to the following people, >whose summary of responses follow: ... more deleted... I only just subscribed to this newsgroup, so this is rather late, but my favourite solution to the loop index problem is the following shell function (just inline it if your shell does not support functions). # usage: range start end [step] range () { echo "[li p ${3-1} + d si $2!