From owner-freebsd-questions@FreeBSD.ORG Sun Dec 12 17:45:38 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 A8DB91065679 for ; Sun, 12 Dec 2010 17:45:38 +0000 (UTC) (envelope-from materribile@yahoo.com) Received: from nm22.bullet.mail.sp2.yahoo.com (nm22.bullet.mail.sp2.yahoo.com [98.139.91.92]) by mx1.freebsd.org (Postfix) with SMTP id 843248FC19 for ; Sun, 12 Dec 2010 17:45:38 +0000 (UTC) Received: from [98.139.91.69] by nm22.bullet.mail.sp2.yahoo.com with NNFMP; 12 Dec 2010 17:45:38 -0000 Received: from [98.139.91.35] by tm9.bullet.mail.sp2.yahoo.com with NNFMP; 12 Dec 2010 17:45:38 -0000 Received: from [127.0.0.1] by omp1035.mail.sp2.yahoo.com with NNFMP; 12 Dec 2010 17:45:38 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 42724.56931.bm@omp1035.mail.sp2.yahoo.com Received: (qmail 45927 invoked by uid 60001); 12 Dec 2010 17:45:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1292175937; bh=DDpknbplOD+SHoAubbOsVDGTWQJSkPolvaKcgwxAcqA=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=YetXjs2nsYDbGR2e62gxK9JC/nlZ//5dqiHc5i2XE0c/210VYAqVZYT2G/4P/r/RWiFqFDpqCP7xfju2IEfK/CEGwPKuSRFsl6Qy1ELvay2pZ4qh5pqJWYa8T2aAJMzM2Nuxzaor6hy+aSC9DUUde8k45Sh9U/MIfmEXqMYda8U= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=OXSpdA9It9czpe0mufRjpEFP2CcpAZDcAo/1h6yV4A+qoL0xrcu6i+7gCEGvf7C+TpK0L0KoygdVqIciXWB40eIbtaMUcdfYrWv3Hbgeyr+8oGp0vULOTmm8T8rMxXpxGeQfhpA98Oj8YlzWxLYwMAtU84C6kSTXlZ2gh4z0WoA=; Message-ID: <709178.44988.qm@web110304.mail.gq1.yahoo.com> X-YMail-OSG: Soture8VM1npTBqyL7DtkrYKanuQrTWKMSmM9QqUUZTjRPI 6x9hoJHuCHILY_F6TUK3ZXnegvG89kyAINCteuAiTVnEFtC9RVk5o_k7sPQ3 a007TDlVPzTtIocx4AZjA97wyNGUfEqfLOoMR932xRyKQT.XcipuSrDlPb_V J5pP7HZt4rRZ_y.n6PZWf6_5k6ERCTCrvqCLpBuokpS9Spwz93vB4QoJRYoX ZhWQffR5evg_nwg132gYdMWoyTYaU63Wn2YvzavsYuSKbuWkiBCt10WISKrp PhVktG5YvISHjaTqWWNwlO.8jzryIPvAs8PCRicGD_eEocBPJl53FZO1xWOF lJX5rK9Xpzr1UqZG6hyrXDfQ5ph29zV8BYOsRgegHSQnrwmkVUexoGx02AXL hOBX6.1PlLMjF Received: from [24.228.57.153] by web110304.mail.gq1.yahoo.com via HTTP; Sun, 12 Dec 2010 09:45:37 PST X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 Date: Sun, 12 Dec 2010 09:45:37 -0800 (PST) From: Mark Terribile To: S Mathias , freebsd-questions@freebsd.org In-Reply-To: <20101212120029.9002610657DF@hub.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: 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 17:45:38 -0000 > > 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