From owner-freebsd-questions@FreeBSD.ORG Wed Mar 29 19:50:59 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE9F316A420 for ; Wed, 29 Mar 2006 19:50:59 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3114C43D73 for ; Wed, 29 Mar 2006 19:50:47 +0000 (GMT) (envelope-from usleepless@gmail.com) Received: by zproxy.gmail.com with SMTP id s18so238615nze for ; Wed, 29 Mar 2006 11:50:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SdKlwmTS15sxFVf2wHXu1Xz+jugrLZJGuGlP53X6Kkv19k1lrwKyDJPuqJWr3mUepVBWtGohyFzo0iwBClUtkhv93uQB71M0lDEBCOx6UQxEHJQ6yfYPW+yzNz75svwalbvK6uBG6uoNXGJTqAg5In5Tm9s21mFMT28+lrkFu+o= Received: by 10.36.59.17 with SMTP id h17mr112699nza; Wed, 29 Mar 2006 11:50:46 -0800 (PST) Received: by 10.36.154.7 with HTTP; Wed, 29 Mar 2006 11:50:46 -0800 (PST) Message-ID: Date: Wed, 29 Mar 2006 21:50:46 +0200 From: usleepless@gmail.com To: "Bill Moran" In-Reply-To: <20060329142754.a7488302.wmoran@collaborativefusion.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060329135713.cec7dbd1.wmoran@collaborativefusion.com> <20060329142754.a7488302.wmoran@collaborativefusion.com> Cc: freebsd-questions@freebsd.org Subject: Re: Shell ( csh, sh ) scripting and seq-command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 19:50:59 -0000 > You > should be able to write a shell script as i stated in my message, i lack shell scripting experience. > that wraps jot and provides > its functionality in the same format as seq. yes, and to convert steps to reps you will need $reps =3D ($end - $start) / $steps, and then see the difference between your script and the output of an actual linux seq. for example: seq 1 2 60 gives 1..3..5..7..59 ( see also my php and csh implementation= s ) a seq equivalent ( 3 par version ) would be: @ reps =3D ( $3 - $1 ) / $2 jot $reps $1 $3 which will give 1..3..5..7..9..12(!)..zzzz..60 so how would your implementation of seq by using jot look like? regards, usleep On 3/29/06, Bill Moran wrote: > On Wed, 29 Mar 2006 21:13:24 +0200 > usleepless@gmail.com wrote: > > > jot !=3D seq > > Equivalent, no. But it does offer comparative functionality. You > should be able to write a shell script that wraps jot and provides > its functionality in the same format as seq. > > -- > Bill Moran > Collaborative Fusion Inc. >