Script to create a filter with param not working

8 visualizzazioni
Passa al primo messaggio da leggere

Paul Long

da leggere,
6 set 2022, 18:38:4406/09/22
a lnav
This is my script

:filter-in ax-$1

But when I run it, it creates an filter in of ax-$1, rather than doing the substitution.  

Am I doing this right?

lnav support

da leggere,
6 set 2022, 18:43:0506/09/22
a Paul Long, lnav

You need to use ":eval"[1] to do variable substitution:

    :eval :filter-in ax-$1

Tim


------- Original Message -------
--
You received this message because you are subscribed to the Google Groups "lnav" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lnav+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lnav/90227f66-1e59-413f-8b98-3dc81b39e5d9n%40googlegroups.com.

Paul Long

da leggere,
7 set 2022, 11:06:4507/09/22
a lnav
Ah, of course.  Forgot about that.  Too easy.  Thanks!
Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi