|
From: Ethan M. <eam...@gm...> - 2017-03-10 21:29:12
|
On Fri, Mar 10, 2017 at 11:32 AM, Patrick Dupre <pd...@gm...> wrote:
> Hello,
>
> I am not sure to understand how to use this backquotes
> Every thing between backquote is just ignored!
>
I am not suggesting that you use backquotes. They are for something else.
I am just trying to explain why it does not work to use @FILE or @ARG1
inside ordinary quotes.
Try splitting this into two stages. First construct the string to be
executed.
commandstring = "< paste" . ARG1 . "| awk '!/^\#/ { print $2 }' "
Confirm that this did what you wanted
print commandstring
Then use it in a plot command.
plot commandstring
>
> ============================================================
> ===============
> Patrick DUPRÉ | | email: pd...@gm...
> Laboratoire de Physico-Chimie de l'Atmosphère | |
> Université du Littoral-Côte d'Opale | |
> Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44
> 189A, avenue Maurice Schumann | | 59140 Dunkerque, France
> ============================================================
> ===============
>
>
> *Sent:* Friday, March 10, 2017 at 7:47 PM
> *From:* "Ethan Merritt" <eam...@gm...>
> *To:* "Patrick Dupre" <pd...@gm...>
> *Cc:* gnuplot <gnu...@li...>
> *Subject:* Re: [Gnuplot-info] paste ARG1
> On Fri, Mar 10, 2017 at 10:36 AM, Patrick Dupre <pd...@gm...> wrote:
> > Hello,
> >
> > This works
> > plot "< paste F0016CH2.csv | awk '!/^\#/ { print $2 }' "
> > But this does not work
> > plot "< paste . ARG1 | awk '!/^\#/ { print $2 }' "
> > neither
> > plot "< paste @ARG1 | awk '!/^\#/ { print $2 }' "
> >
> > Can I get your help?
>
> From "help macros"
>
>>
>> Macro expansion does not occur inside either single or double quotes.
>> However macro expansion does occur inside backquotes.
>
>
>
>
>
|