Script to create a filter with param not working

8 views
Skip to first unread message

Paul Long

unread,
Sep 6, 2022, 6:38:44 PM9/6/22
to 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

unread,
Sep 6, 2022, 6:43:05 PM9/6/22
to 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

unread,
Sep 7, 2022, 11:06:45 AM9/7/22
to lnav
Ah, of course.  Forgot about that.  Too easy.  Thanks!
Reply all
Reply to author
Forward
0 new messages