From owner-freebsd-questions@FreeBSD.ORG Sun Dec 12 18:48:23 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44A8B1065670 for ; Sun, 12 Dec 2010 18:48:23 +0000 (UTC) (envelope-from ryallsd@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id EDCB18FC0C for ; Sun, 12 Dec 2010 18:48:22 +0000 (UTC) Received: by qyk8 with SMTP id 8so2370634qyk.13 for ; Sun, 12 Dec 2010 10:48:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=O8sODMTLAwzLTAMqyDcoXKNf+BdATveX6iuRWQY61CY=; b=SrdWCaP+TDbMm9KT/ozBsm8PfQtSQP+Z3Wx4bukKS37eqvzHIGx6OZ1A46sZVJ08Vb ziuo7q1hBylqjof9a/RzDT9GSWOdgUEByWCzfpsb++TVbcVqbG/peuPLish0NHFgXsCB fIaYtApKu8hZPUU6gh6CvN+hbVLEDs13ViSJI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=se9k+Og6Bjs8oT/Fs5E/zitretzObotRsVYCIUWdp6qNo7KbZlVqYy7kpcP4L9wGA6 gnwHS0Ip8lHA05PE5R9RFddCIiK0zTlxTffh4S1ywvCwambUkCYafUwv4w/xVp8Jdmo0 k61EnwG2vpSOLjAUR29KpT4olLyb9XMkdAbKk= MIME-Version: 1.0 Received: by 10.229.228.146 with SMTP id je18mr2999458qcb.47.1292178122365; Sun, 12 Dec 2010 10:22:02 -0800 (PST) Received: by 10.229.192.70 with HTTP; Sun, 12 Dec 2010 10:22:02 -0800 (PST) In-Reply-To: <709178.44988.qm@web110304.mail.gq1.yahoo.com> References: <20101212120029.9002610657DF@hub.freebsd.org> <709178.44988.qm@web110304.mail.gq1.yahoo.com> Date: Sun, 12 Dec 2010 10:22:02 -0800 Message-ID: From: Derrick Ryalls To: Mark Terribile Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: S Mathias , freebsd-questions@freebsd.org Subject: Re: freebsd-questions Digest, Vol 340, Issue 15 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: Sun, 12 Dec 2010 18:48:23 -0000 On Sun, Dec 12, 2010 at 9:45 AM, Mark Terribile wrote: > > > > It's ok, that i can use this, when i want an incrementing > > sequence, in a given way: > > > > # {START..END..INCREMENT} > > $ for i in {0..10..2}; do echo "Welcome $i times"; done > > Welcome 0 times > > Welcome 2 times > > Welcome 4 times > > Welcome 6 times > > Welcome 8 times > > Welcome 10 times > > $ > > > > but what's the "magic" for this? : > > > > $ MAGIC; do echo "Welcome $i times"; done > > Welcome 0 times > > Welcome 1 times > > Welcome 4 times > > Welcome 5 times > > Welcome 8 times > > Welcome 9 times > > $ > > What's wrong with > > for i in 0 1 4 5 8 9 ; do echo "Welcome $i times"; done > > ? > > Or is there some rule that you want followed? If there is, it's not > obvious to me. (Sorry.) > > Mark Terribile > > > +1, +3, +1, +3....