Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2850 > unrolled thread
| Started by | naobi <rajkumari.roshni@gmail.com> |
|---|---|
| First post | 2015-03-31 18:07 -0700 |
| Last post | 2015-04-01 14:16 +0600 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
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
| From | naobi <rajkumari.roshni@gmail.com> |
|---|---|
| Date | 2015-03-31 18:07 -0700 |
| Subject | for loop in awk script |
| Message-ID | <a4ae05a4-ee48-440c-93ea-3e2c7c97de24@googlegroups.com> |
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
[toc] | [next] | [standalone]
| From | Michael Okuntsov <proximum@land.ru> |
|---|---|
| Date | 2015-04-01 14:16 +0600 |
| Message-ID | <mfg9em$fa8$1@dont-email.me> |
| In reply to | #2850 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web