__piper8
Create commands pipes without the overhead of shells this program has no potential use for administrators or users this program is part of afbackup-client
Usage
__piper [command
[args]
[{" | "
command
[args]
[{" | " ...}]}]]
Overview
This program simply gets one or more commands separated by the pipe symbol "|" as arguments. When called from a shell command line or in any situation, where the whole command is interpreted by a shell, the bar "|" has to be escaped from interpretation, either by preceding it with a backslash "
This program is part of afbackup-client
Examples
The arguments are chained (separated by single spaces each) and then separated at word boundaries. If an argument should contain whitespace, it must be double-quoted. The whole command pipeline may be put into one single argument, so in a shell the following is ok:
__piper 'echo "Hello lots of space" | sed "s/ts of/st in/g"'
Double quotes, the pipe symbol and the backslash itself may be escaped by a preceding backslash " The advantage using this program instead of a shell with the -c option should be a much faster startup of the whole pipeline. This is useful in the process- and uncrosses commands of the client side of afbackup.
Releases
3 releases since Debian 3.0 (Woody); the text changed 1 time.