affix 3plumb | 2012-08-14 |
---|
affix - prefix or suffix each record with a string
[affix prefix=...]
[affix suffix=...]
+-------+ 0 (stdin) ---->| affix |---> (stdout) 1 +-------+
Affix can etither prefix or suffix each incoming record with a string.eof handling
Default.blocking/flow control
Default.buffering
None.
The following example sends stdin of plumb and a tick every second to the stdin of a script, each line prefixed with the source of the data:include stdio script=[hub] | {awk -f script.awk} | env:1 env:0 | $LS | [affix prefix="stdin: "] | script:* [timer repeat=0 period=1] | [affix prefix="timer: "] | script:*
affix 3plumb | 2012-08-14 |
---|