Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2851
| From | Michael Okuntsov <proximum@land.ru> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: for loop in awk script |
| Date | 2015-04-01 14:16 +0600 |
| Organization | A noiseless patient Spider |
| Message-ID | <mfg9em$fa8$1@dont-email.me> (permalink) |
| References | <a4ae05a4-ee48-440c-93ea-3e2c7c97de24@googlegroups.com> |
01.04.2015 07:07, naobi пишет:
> 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
>
https://www.gnu.org/software/gawk/manual/html_node/For-Statement.html
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Find similar | Unroll 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