Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2850

for loop in awk script

Newsgroups comp.graphics.apps.gnuplot
Date 2015-03-31 18:07 -0700
Message-ID <a4ae05a4-ee48-440c-93ea-3e2c7c97de24@googlegroups.com> (permalink)
Subject for loop in awk script
From naobi <rajkumari.roshni@gmail.com>

Show all headers | View raw


Please help me in writing the script file if anyone is using awk script

foreach n(1 2 3 4 5 6 7 8 9 10)
   foreach seed(1 2 3 4 5 6 7 8 9 10)
        statement 1
        statement 2
   end
end

I want to make the seed iterate 1000 times...but it is not possible to write manually foreach seed(1 2 3 4 5 6 7 8 9 10 11 12 .........till 1000)

i tried using awk 'BEGIN{for(i=0;i<1000;i++)}',,,,but it says unmatched found

Thank You

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar | Unroll thread


Thread

for loop in awk script naobi <rajkumari.roshni@gmail.com> - 2015-03-31 18:07 -0700
  Re: for loop in awk script Michael Okuntsov <proximum@land.ru> - 2015-04-01 14:16 +0600

csiph-web