Path: utzoo!attcan!uunet!mcsun!ukc!dcl-cs!aber-cs!odin!pcg From: pcg@odin.cs.aber.ac.uk (Piercarlo Grandi) Newsgroups: comp.unix.questions Subject: Re: Bourne Shell (/bin/sh) counting? Message-ID: Date: 21 Mar 90 12:04:14 GMT References: <22788@adm.BRL.MIL> <1990Mar19.173623.1737@iwarp.intel.com> <15270@bfmny0.UU.NET> Sender: pcg@aber-cs.UUCP Followup-To: comp.unix.questions Organization: Coleg Prifysgol Cymru Lines: 21 In-reply-to: tneff@bfmny0.UU.NET's message of 19 Mar 90 19:17:54 GMT Posting-Front-End: GNU Emacs 18.47.1 of Wed Mar 15 1989 on odin (berkeley-unix) In article <15270@bfmny0.UU.NET> tneff@bfmny0.UU.NET (Tom Neff) writes: Despite all the neat Perl ways to do it, I consider the little 'count' program an important tool for shell programmers. You generally just say for i in `count 1 100` or whatever. Here it is again: OK. Sorry to interrupt your regularly scheduled Perl one liners :-), but I cannot resist a plug. In the 4.2BSd contribs, there was 'jot', that along with 'rs' and 'lam' is one of the most useful tools I have seen. 'Jot' will generate sequences of numbers, characters, strings, etc..., with given from, to, step values. -- Piercarlo "Peter" Grandi | ARPA: pcg%cs.aber.ac.uk@nsfnet-relay.ac.uk Dept of CS, UCW Aberystwyth | UUCP: ...!mcvax!ukc!aber-cs!pcg Penglais, Aberystwyth SY23 3BZ, UK | INET: pcg@cs.aber.ac.uk