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 3 of 6 Topic 3347 of 3655
Post > Topic >>

Re: flexible filenames?

by Bart Vandewoestyne <MyFirstName.MyLastName@[EMAIL PROTECTED] > Jun 12, 2008 at 03:39 PM

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?

Thanks,
Bart

-- 
	"Share what you know.  Learn what you don't."
 




 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 22:19:55 PST 2009.