Next: Redirection Up: Redirection and pipes Previous: Redirection and pipes

Pipes

	prog1 | prog2 | prog3  (etc)

i.e. stdout of prog1 is piped into stdin of prog2 (etc). This allows you to create filters. Try:

	ls | grep abc

where abc is any letter sequence which appears in some of your file names.

grep is a useful pattern matching utility (man grep for more details). Try:

	who | grep ma > names
	more names



Next: Redirection Up: Redirection and pipes Previous: Redirection and pipes


maspjw@
Tue Sep 27 15:29:34 BST 1994