From owner-freebsd-questions@FreeBSD.ORG Sat Dec 11 15:42:37 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 709261065673 for ; Sat, 11 Dec 2010 15:42:37 +0000 (UTC) (envelope-from smathias1972@yahoo.com) Received: from web121409.mail.ne1.yahoo.com (web121409.mail.ne1.yahoo.com [98.138.90.103]) by mx1.freebsd.org (Postfix) with SMTP id 265C98FC18 for ; Sat, 11 Dec 2010 15:42:36 +0000 (UTC) Received: (qmail 23224 invoked by uid 60001); 11 Dec 2010 14:34:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1292078060; bh=VWRcaJSxJ0d9y5XnrPOTtqfpBP73iFZH7sTkFCOzS4c=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=VnakE5SeTZrzWPY/Wcdq1jb+fRWlLW2tlqRms5mSKNgZ7/Dr77RUP4M/9EzHlZ53KQDFWcG7Iy7/9ASPLEChKDCFh2G9weBfLlcSMpC3lYuaJyRNnjN7ozOOXS6EwtnlhLFOmoIG4ZkgZxPX0pvBHwYQ0n0ijF9KuJa+s7buSHk= 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:MIME-Version:Content-Type; b=UA0H2vhsuJPXMpw2+k/K8NB1heg3y3dwulczuic/1D4VaGFkxkkDBz5YPL2r9o8cCbMucMK+5hX3r5P4QuE59djR7bWWa2nUFqV5cQc67TNrtBgkcgpmxgCcFMs6osWyoxx4OJIcow+aBnMLVkrj16N012RvYXQwidHZPQqraP4=; Message-ID: <485300.96624.qm@web121409.mail.ne1.yahoo.com> X-YMail-OSG: YrIXPIQVM1ktvHdyOhQjifg0NHYlET64_uvoQtRNBJ7IT7E AnuGNmSRRdviVRd7FrGGsGBbkID._5tm0lyHFwJmd4x6f7EFH8atY8Vo.hq8 HEOC7S6LzDrXcl4vx3kJ2t2AmnsyFvzWF8ZV4f0Em42U7DvkxmAwkeiUS4Fd CHZT.QKXMnx3_DN2yQtuDsG.cOqaltyCDv13T9w-- Received: from [94.21.120.245] by web121409.mail.ne1.yahoo.com via HTTP; Sat, 11 Dec 2010 06:34:20 PST X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 Date: Sat, 11 Dec 2010 06:34:20 -0800 (PST) From: S Mathias To: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Mailman-Approved-At: Sat, 11 Dec 2010 16:08:01 +0000 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: bash increment in a given way 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: Sat, 11 Dec 2010 15:42:37 -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 $ thanks:\