summaryrefslogtreecommitdiffstats
path: root/tests/001/query-3.txr
blob: 3e1c111467edccf56d9281bf8a1ddbb6f125fefa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@/.*/@# 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)