Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Dec 2010 17:47:11 +0100
From:      =?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?= <faust64@gmail.com>
To:        S Mathias <smathias1972@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: bash increment in a given way
Message-ID:  <AANLkTinMXyJymHcCRD=Fngq5HDjMcyfqdM_0tKQXRPoC@mail.gmail.com>
In-Reply-To: <AANLkTinvWG-25di-uhUGwLw=KOMKdjdJ8ycwQn8Pv1qS@mail.gmail.com>
References:  <485300.96624.qm@web121409.mail.ne1.yahoo.com> <AANLkTimdSjkF6DozgZit7=6WgtdCUt8_abmU%2BHs6B2Rt@mail.gmail.com> <AANLkTinvWG-25di-uhUGwLw=KOMKdjdJ8ycwQn8Pv1qS@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
also... if (n<avg) ... sorry for the sp am...

On Sat, Dec 11, 2010 at 5:36 PM, Samuel Mart=EDn Moro <faust64@gmail.com>wr=
ote:

> with seq starting with 0, to fit your example...
>
> On Sat, Dec 11, 2010 at 5:34 PM, Samuel Mart=EDn Moro <faust64@gmail.com>=
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 <smathias1972@yahoo.com>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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinMXyJymHcCRD=Fngq5HDjMcyfqdM_0tKQXRPoC>