[Gretl-devel] environment variables in gretl script
Allin Cottrell
cottrell at wfu.edu
Thu Apr 12 11:48:13 EDT 2007
On Thu, 12 Apr 2007, Riccardo (Jack) Lucchetti wrote:
> [getenv would] be very useful. I am currently working on a paper
> where I had to run a number of Monte Carlo experiments. I
> managed to hack a shell script with some grep/sed magic to get
> what I wanted, but getenv() would have been very useful.
I'll see what I can do about that.
> sprintf() would also be good.
It's already there:
? sprintf foostr "egg%d", 10
Saved string as 'foostr'
? print "@foostr"
egg10
No, it's not in the manual yet, I'm afraid!
Allin.
More information about the Gretl-devel
mailing list