back toc next

Pipelines

pipeline

command1 | command2 ...
time [-p] command1 [| command2 ...]

Example (patching a sourcetree):
zcat patchfile.gz | patch -p1

Example (emulation of man)
zcat nice.1.gz | groff -T ascii -m an | less
FIXME: um keine Steuerzeichen im Output zu haben...

Example (counting the shells in /etc/shells)
cat /etc/shells | grep "/bin" | wc -l		# UUCA
grep "/bin" /etc/shells | wc -l