From owner-freebsd-questions@FreeBSD.ORG Sat Dec 11 16:47:53 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 5FE89106566C for ; Sat, 11 Dec 2010 16:47:53 +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 0D6A78FC08 for ; Sat, 11 Dec 2010 16:47:52 +0000 (UTC) Received: by qwj9 with SMTP id 9so4843418qwj.13 for ; Sat, 11 Dec 2010 08:47:52 -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=hGaYXMVuwYDcIDOv6c/DJcNDtsA9i+3JuCpGNHjNjPw=; b=vQVC+4DuqEI3dUAT6TOoAm+G/IwABWux+owkE1m9k1ZBKUpq0iajAvu2RvdYi3VwSd CbnGbOxlFVgRsjPyzJ45PlhtmKncO7kVe6GP5C2aSwtr3669a9RAdbU7q+4Kizr8J1yT r4mZsnTi4cWH2p36+DfjnRyszsla6UoaF46o0= 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=se1P4hG8/tc4Vy3C3oCtgmk2VeicA+duF+QgXPgMW6sgshpnSANUgvfCV4xmZPmHcE 64myI3ATd9+1+ILNq2HJ6EwkPfKDJf/V+WC8DhoUDeIgVHvIk7K2mwqukVAicb3Ckfy1 64MK3KyhF1uiD/k64gR+YYJdvnvMt/pg7Q7ak= Received: by 10.229.236.66 with SMTP id kj2mr1888010qcb.285.1292086071906; Sat, 11 Dec 2010 08:47:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.235.148 with HTTP; Sat, 11 Dec 2010 08:47:11 -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:47:11 +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:47:53 -0000 also... if (nwr= ote: > with seq starting with 0, to fit your example... > > On Sat, Dec 11, 2010 at 5:34 PM, Samuel Mart=EDn Moro = wrote: > >> something like that? >> for i in `seq 1 20 | awk 'BEGIN{n=3D0; max=3D4; avg=3Dmax/2}{if (n<=3Dav= g) {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) >> > > > > -- > 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)