aboutsummaryrefslogtreecommitdiffstats
path: root/pw.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-05-07 16:16:51 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-05-07 16:16:51 -0700
commita5bb91bf9df40b6f0f896dfaf57555651b8c2bc2 (patch)
treed481784f4c9f4210c25d581a230bd653e2996d85 /pw.1
parentb45105b94ee7d712a4d7b2a1c9054fd95e715093 (diff)
downloadpw-a5bb91bf9df40b6f0f896dfaf57555651b8c2bc2.tar.gz
pw-a5bb91bf9df40b6f0f896dfaf57555651b8c2bc2.tar.bz2
pw-a5bb91bf9df40b6f0f896dfaf57555651b8c2bc2.zip
New -e option to execute commands.
Now there is a way to set up triggers prior to execution.
Diffstat (limited to 'pw.1')
-rw-r--r--pw.119
1 files changed, 19 insertions, 0 deletions
diff --git a/pw.1 b/pw.1
index a596249..fcb4709 100644
--- a/pw.1
+++ b/pw.1
@@ -836,6 +836,25 @@ The
command displays these same parameters in the same format, so it is possible to
set them up interactively and then copy the values shown by
.BR Ctrl-G .
+.RE
+
+.IP "\fB-e\fP \fIcommand\fP"
+Execute a colon or trigger command. For instance
+
+.ft B
+ -e :c15
+.ft R
+
+sets the capture count to 15. Note that the colon is included in the command.
+Trigger commands may be preceded by a count. For example:
+
+.ft B
+ -e 3/^Failed
+.ft R
+
+sets a head-referenced trigger for the pattern
+.B ^Failed
+matching against line 3 of the FIFO.
.SH ENVIRONMENT