Xref: utzoo comp.unix.questions:20690 comp.lang.perl:785 Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucbvax!iwarp.intel.com!news From: merlyn@iwarp.intel.com (Randal Schwartz) Newsgroups: comp.unix.questions,comp.lang.perl Subject: Re: Bourne Shell (/bin/sh) counting? Message-ID: <1990Mar19.173623.1737@iwarp.intel.com> Date: 19 Mar 90 17:36:23 GMT References: <22788@adm.BRL.MIL> Sender: news@iwarp.intel.com Reply-To: merlyn@iwarp.intel.com (Randal Schwartz) Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA Lines: 22 In-Reply-To: rbottin@atl.calstate.edu (Richard John Botting) In article <22788@adm.BRL.MIL>, rbottin@atl (Richard John Botting) writes: | I'd like to see a neat solution (other than a "increment.c" program). If you insist on doing the main looping in sh, for i in `perl -e '@a=1..20;print"@a";'` do echo $i done If you want to just launch stuff quickly, perl -e 'for $i (1..20) {system "echo $i";}' Look ma. No C! Just another Perl hacker, -- /=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\ | on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III | | merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | \=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/