affix 3plumb 2012-08-14

NAME

affix - prefix or suffix each record with a string

SYNPOSIS

[affix prefix=...]

[affix suffix=...]

 
               +-------+
0 (stdin) ---->| affix |---> (stdout) 1
               +-------+

DESCRIPTION

Affix can etither prefix or suffix each incoming record with a string.

eof handling

Default.

blocking/flow control

Default.

buffering

None.

EXAMPLE

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:*

SEE ALSO

affix 3plumb 2012-08-14