Talk About Network

Google





Graphics > Gnuplot interactive function plotter > Re: flexible fi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 6 Topic 3347 of 3655
Post > Topic >>

Re: flexible filenames?

by merritt@[EMAIL PROTECTED] (Ethan Merritt) Jun 12, 2008 at 08:47 AM

In article <hrb4k.131424$Ex2.93657@[EMAIL PROTECTED]
>,
Bart Vandewoestyne  <MyFirstName.MyLastName@[EMAIL PROTECTED]
> wrote:
>On 2008-06-06, merritt@[EMAIL PROTECTED]
> wrote:
>>
>> Yes, certainly.  Here is a simple example that show 2 possible
>> command variants for defining the file names.
>>
>>   N = 1
>>   outfile = "graph_dim".N.".eps"
>>   infile  = sprintf("data_dim%02d.eps",N)
>>
>>   set output outfile
>>   plot infile ....
>
>Thanks for this interesting suggestion.  I do however also sometimes use
>the ! symbol to escape to my shell.  And in the commands after
>the ! symbol i would also like to use the above principle of
>dynamically building up my filenames.
>
>Consider the following example:
>
>
>s=8
>
>! echo s
>! echo $s
>! echo sprintf("%02d", s)
>
>None of the above three echo commands shows the value for s.  How would
>i do that?
The ! mechanism is the wrong way to go.  Use the system() command instead.

command = "echo ".s
system(command)

-- 
Ethan A Merritt
 




 6 Posts in Topic:
flexible filenames?
Bart Vandewoestyne <My  2008-06-06 11:20:22 
Re: flexible filenames?
merritt@[EMAIL PROTECTED]  2008-06-06 12:50:23 
Re: flexible filenames?
Bart Vandewoestyne <My  2008-06-12 15:39:57 
Re: flexible filenames?
merritt@[EMAIL PROTECTED]  2008-06-12 08:47:58 
Re: flexible filenames?
Juergen Wieferink <wie  2008-06-13 08:21:27 
Re: flexible filenames?
Tim Hoffmann <tim.hoff  2008-06-06 22:11:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 13:04:05 PST 2009.