From owner-freebsd-questions@FreeBSD.ORG Sat Dec 11 16:36:47 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 CDFCA1065694 for ; Sat, 11 Dec 2010 16:36:47 +0000 (UTC) (envelope-from faust64@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7E78E8FC24 for ; Sat, 11 Dec 2010 16:36:47 +0000 (UTC) Received: by qwj9 with SMTP id 9so4837236qwj.13 for ; Sat, 11 Dec 2010 08:36:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=OQ/U5icukyJC1NkrGpDb7eG6BYibhMFWp9FqYuzc3rI=; b=BZ66+sFrk+euRm6H10Yma4dtYMTOsbopDftT+Jm/0fI4NK9R0S+VlCwOJu6cbxFgju XNvsJB8CsJ8k6fZ65+zdkfb6QokJpc/csIH4q9jZ4BqFAHpTy4wplY7X5rAWYUU8itOh r7vtWw9t5QNd6xY8/V7IMUc3W3PCOQChXVF9I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=Eji3Ep4ayE46Zx0GivmxqEFbkEub7bewc8CmJLHxKBBVM2DJ/eWnyUh5Wx1UNWraz7 cjOtUCm7KqsHAeHpMDzWC+jsjI+cfZv+3NsW4lz41lRpWVPn4z1QcyBJZymgsho/fqlB Dig5uU/eex1JRUxVYP5YB3eW0xq4qmdDqqmFs= Received: by 10.229.215.6 with SMTP id hc6mr1939100qcb.133.1292085406807; Sat, 11 Dec 2010 08:36:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.235.148 with HTTP; Sat, 11 Dec 2010 08:36:06 -0800 (PST) In-Reply-To: References: <485300.96624.qm@web121409.mail.ne1.yahoo.com> From: =?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?= Date: Sat, 11 Dec 2010 17:36:06 +0100 Message-ID: To: S Mathias Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: 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 16:36:48 -0000 with seq starting with 0, to fit your example... On Sat, Dec 11, 2010 at 5:34 PM, Samuel Mart=EDn Moro wr= ote: > something like that? > for i in `seq 1 20 | awk 'BEGIN{n=3D0; max=3D4; avg=3Dmax/2}{if (n<=3Davg= ) {print > $0;} n++; if (n>=3Dmax) {n=3D0;} }'` > do > echo welcome $i times > done > > > > On Sat, Dec 11, 2010 at 3:34 PM, S Mathias wrote= : > >> , that i can use this, when i want > > > > > -- > Samuel Mart=EDn Moro > {EPITECH.} tek5 > CamTrace S.A.S > (+033) 1 41 38 37 60 > 1 All=E9e de la Venelle > 92150 Suresnes > FRANCE > > "Nobody wants to say how this works. > Maybe nobody knows ..." > Xorg.conf(5) > --=20 Samuel Mart=EDn Moro {EPITECH.} tek5 CamTrace S.A.S (+033) 1 41 38 37 60 1 All=E9e de la Venelle 92150 Suresnes FRANCE "Nobody wants to say how this works. Maybe nobody knows ..." Xorg.conf(5)