Re: [Linux] bash dongusunde bir sorun

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: N.Ersen SISECI (siseci@acikkod.org)
Date: Thu 16 Jun 2005 - 13:40:21 EEST


Selamlar,

while [ ...
do
    ten=$
    s=0

seklinde kullanmalisiniz.
Yani icteki while dan cikildiktan sonra s hep 30 olarak kaliyor.
bu ic while a girmeden once s=0 derseniz dogru calisacaktir.

Iyi calismalar.

-- 
N. Ersen SISECI
http://www.enderunix.org
http://www.acikkod.org

OS: FreeBSD 5.4-RC3 Mail Client: Gnome evolution-2.2 2.2.1.1

On Thu, 2005-06-16 at 13:32 +0300, orkun wrote:

> merhaba > > asagidaki betikde > en distaki dongu (1..$t) niye 1 kereden fazla calismiyor ? > > > ~~~~~~~~~~~~~~~ > #!/bin/bash > > t=1 > s=0 > while [ $t -lt 30 ] > do > ten=$((15 +(t*2))) > while [ $s -lt 30 ] > do > sm=$((1/10 +(s*2))) > echo ' t='$t ' s='$s cross3$t$s ' tension='$ten ' smooth='$sm > s=$((s+1)) > done > t=$((t+1)) > done > ~~~~~~~~~~~~~ > > saygilar > > Ahmet Temiz > > ______________________________________ > XamimeLT - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster@deprem.gov.tr > ______________________________________ > The views and opinions expressed in this e-mail message are the sender's own > and do not necessarily represent the views and the opinions of Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. > > _______________________________________________ > Linux mailing list > Linux@liste.linux.org.tr > http://liste.linux.org.tr/mailman/listinfo/linux

_______________________________________________
Linux mailing list
Linux@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.