|
From: Jacob G. <jac...@gm...> - 2014-12-08 18:48:15
|
On Mon Dec 08 2014 at 11:47:43 AM Ethan Merritt <eam...@gm...> wrote:
> The prefix must conform to normal
> limitations for variable names, however. It cannot start with a digit
> or contain punctuation marks.
>
Ah. I had hyphens in my filenames. Removing them cleared that error, but
now I get:
warning: Skipping data file with no valid points
I tried a non loop minimal example to ensure it's not a problem with my
datafile:
stats 'file.txt' prefix "file"
plot 'file.txt' every::file_index_max::file_index_max
This works fine.
Is there a way to look at what a command expanded into after the variables
were substituted?
On Mon Dec 08 2014 at 11:47:43 AM Ethan Merritt <eam...@gm...> wrote:
> On Mon, Dec 8, 2014 at 4:25 AM, Jacob Gerlach <jac...@gm...>
> wrote:
> > Thanks for the tips.
> >
> > On Sun Dec 07 2014 at 8:48:29 PM Ethan A Merritt <EAM...@gm...>
> > wrote:
> >>
> >> files = "one two three four"
> >>
> >> do for [name in files] {
> >> stats name.'.txt' using 1 prefix name
> >> }
> >
> >
> > I get an "illegal prefix" error when I try this. It seems like it
> doesn't
> > like taking the prefix from a variable, but I can't find any discussion
> of
> > this on the web.
>
> I use this construction in scripts myself, so I am sure there is no
> such limitation in general. The prefix must conform to normal
> limitations for variable names, however. It cannot start with a digit
> or contain punctuation marks.
>
> Ethan
>
> > Any ideas?
> >
> > Jake
>
|