From owner-freebsd-questions@FreeBSD.ORG Sat Dec 11 16:35:31 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 CCA0B1065696 for ; Sat, 11 Dec 2010 16:35:31 +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 81A968FC08 for ; Sat, 11 Dec 2010 16:35:31 +0000 (UTC) Received: by qwj9 with SMTP id 9so4836459qwj.13 for ; Sat, 11 Dec 2010 08:35:30 -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=0irvulemSTeoxf/HB/Tc5ig7qaPui3pJFv+3PNNQli8=; b=OiR5wQEF6w3oFXW3dJ7gHjbg/gN1eu+VmB9W/4e/ak8KjWUlgtfaUAj+4YOgxkcS7f etERMxrELzPktKFX1T3TxOYLg+SqqNHmDcsVDU7GFmMj1E04KTzTQ3NK5mUhnF4D6ByR q5CMuTjJc+oMxGpZr0xLJfF2J3gsadyTdAErw= 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=Jm2yK9JNPHp6optHkPmZZE1OUpNwYcQq66uwv0cheLw+xF/M8yjZ7vjy8Y1WqpiS6d g0YLtnpS9aYClLPifiK0dPUH1NmLL/ariSPwFipN4MmhftGE/q7DOCGtX4vULd8u0Jmh xwVPxyrF89uGnGQoJGuxyAy5q6nl40MI1ZGBQ= Received: by 10.229.219.136 with SMTP id hu8mr1946846qcb.171.1292085330793; Sat, 11 Dec 2010 08:35:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.235.148 with HTTP; Sat, 11 Dec 2010 08:34:50 -0800 (PST) In-Reply-To: <485300.96624.qm@web121409.mail.ne1.yahoo.com> References: <485300.96624.qm@web121409.mail.ne1.yahoo.com> From: =?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?= Date: Sat, 11 Dec 2010 17:34:50 +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:35:32 -0000 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 --=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)