diff options
Diffstat (limited to 'tests/001/query-3.txr')
-rw-r--r-- | tests/001/query-3.txr | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/001/query-3.txr b/tests/001/query-3.txr new file mode 100644 index 00000000..ec12c9f2 --- /dev/null +++ b/tests/001/query-3.txr @@ -0,0 +1,21 @@ +@# +@# This file is in the public domain. +@# It was authored by Kaz Kylheku <kkylheku@gmail.com> in 2009 +@# +@/.*/@# skip header +@(collect) +@ (coll)@{TOKEN /[^ ]+/}@(end) +@ (bind (UID PID PPID C STIME TTY TIME . CMD) TOKEN) +@ (cat CMD) @# +@ (forget TOKEN) +@(end) +@(output) +@(repeat) +@{UID 8} @{PID -5} +@(first) +UID PID +@{UID 8} @{PID -5} +@(empty) +No processes! +@(end) +@(end) |